drupal-graphql / graphql

GraphQL integration for Drupal 9/10
288 stars 201 forks source link

[V4] Provide a method to download the schema in GraphQL or JSON format #1218

Open Kingdutch opened 3 years ago

Kingdutch commented 3 years ago

Introspection provides the ability for other tools to ask questions to the GraphQL API. However, sometimes you have a tool that requires a GraphQL schema or JSON schema file (like Postman) which doesn't have its own introspection tool built in and you don't want to set up a toolchain just to get this data.

The proposal is to add a method on the GraphQL configuration page, similarly to the validation tab, that allows a developer to download the current schema either as .graphql file (which merges and simplifies all enabled .graphqls files) or as .json file.

ArneSaknussemm89 commented 2 years ago

Was just looking for something like this. Would be amazing to have for sure.