Skip to content

Commit fa3f177

Browse files
committed
More missing pieces
1 parent f588046 commit fa3f177

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/language/__tests__/predicates-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ describe('AST node predicates', () => {
9292
'NamedType',
9393
'ListType',
9494
'NonNullType',
95+
'SemanticNonNullType',
9596
]);
9697
});
9798

src/language/ast.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export const QueryDocumentKeys: {
236236
NamedType: ['name'],
237237
ListType: ['type'],
238238
NonNullType: ['type'],
239+
SemanticNonNullType: ['type'],
239240

240241
SchemaDefinition: ['description', 'directives', 'operationTypes'],
241242
OperationTypeDefinition: ['type'],

src/language/printer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const printDocASTReducer: ASTReducer<string> = {
131131
NamedType: { leave: ({ name }) => name },
132132
ListType: { leave: ({ type }) => '[' + type + ']' },
133133
NonNullType: { leave: ({ type }) => type + '!' },
134+
SemanticNonNullType: { leave: ({ type }) => type + '*' },
134135

135136
// Type System Definitions
136137

0 commit comments

Comments
 (0)