File tree Expand file tree Collapse file tree
lib/src/main/java/graphql/nadel/engine/blueprint Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,20 +18,19 @@ internal class NadelSchemaTraverser {
1818 visitor : NadelSchemaTraverserVisitor ,
1919 ) {
2020 val typeRoots = schema.typeMap.asSequence()
21+ .filterNot { (typeName) ->
22+ Introspection .isIntrospectionTypes(typeName) || ScalarInfo .isGraphqlSpecifiedScalar(typeName)
23+ }
2124 .map { (_, type) ->
2225 NadelSchemaTraverserElement .from(type)
2326 }
24- .filterNot {
25- val nodeName = it.node.name
26- Introspection .isIntrospectionTypes(nodeName) || ScalarInfo .isGraphqlSpecifiedScalar(nodeName)
27- }
2827 val directiveRoots = schema.directives.asSequence()
28+ .filterNot { directive ->
29+ DirectiveInfo .isGraphqlSpecifiedDirective(directive.name)
30+ }
2931 .map { directive ->
3032 NadelSchemaTraverserElement .from(directive)
3133 }
32- .filterNot {
33- DirectiveInfo .isGraphqlSpecifiedDirective(it.node.name)
34- }
3534
3635 return traverse((typeRoots + directiveRoots).asIterable(), visitor)
3736 }
You can’t perform that action at this time.
0 commit comments