Directives _mappedType, _mappedInputField and _mappedOperation not in schema
See original GitHub issueSPQR adds the directives _mappedType, _mappedInputField and _mappedOperation to types, fields, queries and more. When doing introspection on the schema (for example with the query graphql.introspection.IntrospectionQuery.INTROSPECTION_QUERY
) the three directives are not listed as part of the schema. Some query validations in apollo throw errors due to the fact that the definition of the directives is not in the schema.
Is there a way to get the definition of the directives in the schema?
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (4 by maintainers)
Top Results From Across the Web
Directives (GraphQL SPQR 0.10.0 API) - javadoc.io
public class Directives extends Object ... static boolean, isMappedType(graphql.schema. ... GraphQLDirective mappedInputField(InputField inputField) ...
Read more >leangen/graphql-spqr - Gitter
The new directives ( @_mappedType and @_mappedOperation ) store the underlying Java types and fields so that that they remain accessible to instumentations...
Read more >graphql.schema.GraphQLDirective Java Examples
This page shows Java code examples of graphql.schema. ... private String directiveDefinitions(List<GraphQLDirective> directives) { StringBuilder sb = new ...
Read more >io.leangen.graphql.util.Directives.mappedType java code examples ...
builder.withDirective(Directives.mappedType(javaType));
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is a working example of how to use SPQR with Apollo Federation https://github.com/ankit-joinwal/graphqpl-spqr-federation-poc
I stumbled on the internals by using
graphql.schema.idl.SchemaPrinter
to see what was generated and wondered what these directives were and what they would mean from the clients perspective. I wonder if these is some way to exclude them from the schema before printing it.