Generating Code from Extended Introspection Types #5503
-
I am trying to use a feature of Hot Chocolate GraphQL server that allows the introspection types to be extended, but the code-generator only outputs the graphql default structure for introspection types. Our requirement is to have friendly and localised names for Enum values.
The generated code however does not include any of the added fields ( Running the introspection query returns all the fields
Is this something where the behaviour can be modified with configuration or a plugin, or is the handling of introspection types hard-coded to the ones specified in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not sure we can support these, mainly because they are out-of-spec and fairly custom. It really depends on how each extended type is implemented and what's the effect on the schema / generated types. We are using the introspection only with |
Beta Was this translation helpful? Give feedback.
I'm not sure we can support these, mainly because they are out-of-spec and fairly custom.
It really depends on how each extended type is implemented and what's the effect on the schema / generated types.
We are using the introspection only with
buildClientSchema
and then use that schema or AST for codegen. So introspection from our point of view is really temporary. So as long as the GraphQL spec and graphql-js doesn't support these - we can't support it either.