1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.getRoot = function (schema, operation) {
|
4 | switch (operation.operation) {
|
5 | case 'query':
|
6 | return schema.getQueryType();
|
7 | case 'mutation':
|
8 | return schema.getMutationType();
|
9 | case 'subscription':
|
10 | return schema.getSubscriptionType();
|
11 | default:
|
12 | return null;
|
13 | }
|
14 | };
|
15 | //# sourceMappingURL=get-root.js.map |
\ | No newline at end of file |