Directives _mappedType, _mappedInputField and _mappedOperation not in schemaSee original GitHub issue
SPQR 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?
- Created 4 years ago
- Comments:20 (4 by maintainers)
Top GitHub Comments
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.