Skip to content

Commit c8b67b7

Browse files
oryan-blockclaude
andcommitted
Clarify which schema directives are built
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 233097a commit c8b67b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/kotlin/graphql/kickstart/tools/SchemaParser.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ class SchemaParser internal constructor(
105105
val additionalObjects = objects.filter { o -> o != query && o != subscription && o != mutation }
106106

107107
val types = (additionalObjects.toSet() as Set<GraphQLType>) + inputObjects + enums + interfaces + unions
108-
// Directives applied to the schema itself, e.g. `extend schema @link(...)`. Only applied directives are built here:
109-
// graphql-java doesn't resolve type references in the deprecated legacy schema directives, so enum arguments would fail.
108+
// Directives applied to the schema itself, e.g. `extend schema @link(...)`. Only GraphQLAppliedDirectives are built here, not
109+
// the deprecated GraphQLDirective ones: graphql-java doesn't resolve type references in those, so enum arguments would fail.
110110
val schemaAppliedDirectives = buildAppliedDirectives(rootInfo.getDirectives()).toList()
111111
return SchemaObjects(query, mutation, subscription, types, schemaDirectives, codeRegistryBuilder, rootInfo.getDescription(), schemaAppliedDirectives)
112112
}

0 commit comments

Comments
 (0)