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 3e5a81e commit 8b9a38aCopy full SHA for 8b9a38a
Sources/GraphQL/Type/Introspection.swift
@@ -496,17 +496,17 @@ let TypeNameMetaFieldDef = GraphQLFieldDefinition(
496
}
497
)
498
499
-let introspectionTypeNames = [
500
- __Schema.name,
501
- __Directive.name,
502
- __DirectiveLocation.name,
503
- __Type.name,
504
- __Field.name,
505
- __InputValue.name,
506
- __EnumValue.name,
507
- __TypeKind.name,
+let introspectionTypes: [GraphQLNamedType] = [
+ __Schema,
+ __Directive,
+ __DirectiveLocation,
+ __Type,
+ __Field,
+ __InputValue,
+ __EnumValue,
+ __TypeKind,
508
]
509
510
func isIntrospectionType(type: GraphQLNamedType) -> Bool {
511
- return introspectionTypeNames.contains(type.name)
+ return introspectionTypes.map { $0.name }.contains(type.name)
512
0 commit comments