Skip to content

Export of GraphQL Schema #2089

Answered by dotansimha
Bilal-S asked this question in General
May 4, 2021 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

Hi @Bilal-S !
Are you referring to the executable schema (GraphQLSchema), or to the SDL only?

If you wish to get the GraphQLSchema instance, follow this: https://www.graphql-mesh.com/docs/getting-started/basic-example and use getMesh to get the executable schema.

If you wish to get the JSON introspection of the schema, you can use dump-schema command, like that: yarn graphql-mesh dump-schema --output ./schema.json (note, if you'll set the extension to .graphql, you'll get SDL ;) )

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@Bilal-S
Comment options

Answer selected by Bilal-S
Comment options

You must be logged in to vote
7 replies
@Urigo
Comment options

@santino
Comment options

@Bilal-S
Comment options

@Urigo
Comment options

@Bilal-S
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants