Skip to content

Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)

Notifications You must be signed in to change notification settings

prisma-labs/get-graphql-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2e87323 · Feb 1, 2019

History

24 Commits
Dec 9, 2018
Feb 1, 2019
Dec 9, 2018
Aug 2, 2017
Dec 9, 2018
Feb 1, 2019
Dec 9, 2018
Dec 9, 2018
Feb 1, 2019
Feb 1, 2019

Repository files navigation

get-graphql-schema npm version

Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)

Note: Consider using graphql-cli instead for improved workflows.

Install

npm install -g get-graphql-schema

Usage

  Usage: get-graphql-schema [OPTIONS] ENDPOINT_URL > schema.graphql

  Fetch and print the GraphQL schema from a GraphQL HTTP endpoint
  (Outputs schema in IDL syntax by default)

  Options:
    --header, -h    Add a custom header (ex. 'X-API-KEY=ABC123'), can be used multiple times
    --json, -j      Output in JSON format (based on introspection query)
    --version, -v   Print version of get-graphql-schema

Help & Community Slack Status

Join our Slack community if you run into issues or have questions. We love talking to you!