@@ -21,7 +21,7 @@ import {
2121 NamedTypeNode ,
2222 ObjectTypeDefinitionNode ,
2323 OperationTypeDefinitionNode ,
24- OperationTypeNode ,
24+ type OperationTypeNode ,
2525 parseConstValue ,
2626 parseType ,
2727 ScalarTypeDefinitionNode ,
@@ -77,21 +77,21 @@ export function createSchemaNode(schema: {
7777 schema . query
7878 ? {
7979 kind : Kind . OPERATION_TYPE_DEFINITION ,
80- operation : OperationTypeNode . QUERY ,
80+ operation : 'query' as OperationTypeNode ,
8181 type : createNamedTypeNode ( schema . query ) ,
8282 }
8383 : [ ] ,
8484 schema . mutation
8585 ? {
8686 kind : Kind . OPERATION_TYPE_DEFINITION ,
87- operation : OperationTypeNode . MUTATION ,
87+ operation : 'mutation' as OperationTypeNode ,
8888 type : createNamedTypeNode ( schema . mutation ) ,
8989 }
9090 : [ ] ,
9191 schema . subscription
9292 ? {
9393 kind : Kind . OPERATION_TYPE_DEFINITION ,
94- operation : OperationTypeNode . SUBSCRIPTION ,
94+ operation : 'subscription' as OperationTypeNode ,
9595 type : createNamedTypeNode ( schema . subscription ) ,
9696 }
9797 : [ ] ,
0 commit comments