You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got as far as producing a schema.json file by sending an introspection query to my backend with graphql-client, but I want to produce a schema.graphql file; or anything that will allow me to traverse the GraphQL schema easily client-side. Is there a simple way to do this? graphql_client_codegen seems to have the functionality but it's all private.
Basically my end objective is to generate a schema.graphql file and Typescript types from a GraphQL schema. I'm aware of graphql-codegen, I just want to make my own implementation.
(Edit: I'm a fool, I've realised IntrospectionResponse is good enough for traversing)
The text was updated successfully, but these errors were encountered:
I've got as far as producing a
schema.json
file by sending an introspection query to my backend withgraphql-client
, but I want to produce aschema.graphql
file;or anything that will allow me to traverse the GraphQL schema easily client-side. Is there a simple way to do this?graphql_client_codegen
seems to have the functionality but it's all private.Basically my end objective is to generate a
schema.graphql
file and Typescript types from a GraphQL schema. I'm aware ofgraphql-codegen
, I just want to make my own implementation.(Edit: I'm a fool, I've realised
IntrospectionResponse
is good enough for traversing)The text was updated successfully, but these errors were encountered: