We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2419c3d commit d0c75b1Copy full SHA for d0c75b1
src/language/parser.js
@@ -274,8 +274,8 @@ function parseOperationDefinition(lexer: Lexer<*>): OperationDefinitionNode {
274
return {
275
kind: OPERATION_DEFINITION,
276
operation: 'query',
277
- name: null,
278
- variableDefinitions: null,
+ name: undefined,
+ variableDefinitions: [],
279
directives: [],
280
selectionSet: parseSelectionSet(lexer),
281
loc: loc(lexer, start)
0 commit comments