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 c472b9e commit 163785dCopy full SHA for 163785d
src/language/parser.ts
@@ -253,8 +253,10 @@ export class Parser {
253
* - InputObjectTypeDefinition
254
*/
255
parseDefinition(): DefinitionNode {
256
- // TODO: I don't know what isConst represents. Every other callsite has it false
257
const directives = this.parseDirectives(false);
+ // If a document-level SemanticNullability directive exists as
258
+ // the first element in a document, then all parsing will
259
+ // happen in SemanticNullability mode.
260
for (const directive of directives) {
261
if (directive.name.value === 'SemanticNullability') {
262
this._options.useSemanticNullability = true;
0 commit comments