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 4c8e56e commit c93390bCopy full SHA for c93390b
Sources/GraphQL/Type/Introspection.swift
@@ -275,6 +275,17 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
275
return fields
276
}
277
278
+ if let type = type as? GraphQLInterfaceType {
279
+ let fieldMap = type.fields
280
+ var fields = Array(fieldMap.values).sorted(by: { $0.name < $1.name })
281
+
282
+ if !arguments["includeDeprecated"].bool! {
283
+ fields = fields.filter({ !$0.isDeprecated })
284
+ }
285
286
+ return fields
287
288
289
return nil
290
291
),
0 commit comments