Skip to content

Commit

Permalink
polish(ast): prefer undefined over empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 27, 2024
1 parent 992b768 commit f2c3aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ export class Parser {
kind: Kind.OPERATION_DEFINITION,
operation: OperationTypeNode.QUERY,
name: undefined,
variableDefinitions: [],
directives: [],
variableDefinitions: undefined,
directives: undefined,
selectionSet: this.parseSelectionSet(),
});
}
Expand Down

0 comments on commit f2c3aea

Please sign in to comment.