You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e3bf5cc
Browse filesBrowse the repository at this point in the historyBrowse files
else->throwSchemaError("Can't guess the type of argument ${directive.name}#$argumentName of undeclared directive ${directive.name}, please declare the directive.")
429
+
}
430
+
}
431
+
397
432
// TODO remove this once directives are fully replaced with applied directives
398
433
privatefunbuildDirectives(
399
434
directives:List<Directive>,
@@ -408,7 +443,9 @@ class SchemaParser internal constructor(
408
443
names.add(directive.name)
409
444
val graphQLDirective =this.schemaDirectives.find { d -> d.name == directive.name }
410
445
?:BUILT_IN_DIRECTIVES[directive.name]
411
-
?:throwSchemaError("Found applied directive ${directive.name} without corresponding directive definition.")
446
+
// graphql-java rejects legacy directives without a definition, so undeclared ones are only kept as applied directives
447
+
?:if (options.allowUndeclaredDirectives) continue
448
+
elsethrowSchemaError("Found applied directive ${directive.name} without corresponding directive definition.")
412
449
val graphQLArguments = graphQLDirective.arguments.associateBy { it.name }
0 commit comments