get-graphql-schema-pr

2.1.1 • Public • Published

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!

Dependents (0)

Package Sidebar

Install

npm i get-graphql-schema-pr

Weekly Downloads

2

Version

2.1.1

License

MIT

Unpacked Size

10.3 kB

Total Files

4

Last publish

Collaborators

  • kazeia