Skip to content

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

@Kingdutch

Description

@Kingdutch
Contributor

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.

Activity

ArneSaknussemm89

ArneSaknussemm89 commented on Jun 13, 2022

@ArneSaknussemm89

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Kingdutch@ArneSaknussemm89

        Issue actions

          [V4] Provide a method to download the schema in GraphQL or JSON format · Issue #1218 · drupal-graphql/graphql