1.0.1 • Published 4 years ago

@tom.vista/get-graphql-schema v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

a fix form get-graphql-schema

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  "your GraphQL server http url" --output "your path/schema.graphql" -h "a=b(your http header of auth)"

  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
    --output        Save schema to file.

Help & Community Slack Status

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

npm.io