https://github.com/prisma-labs/get-graphql-schema
Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)
https://github.com/prisma-labs/get-graphql-schema
apollo apollographql devtools graphql graphql-schema relay
Last synced: about 1 month ago
JSON representation
Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)
- Host: GitHub
- URL: https://github.com/prisma-labs/get-graphql-schema
- Owner: prisma-labs
- Created: 2017-02-02T17:17:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T15:11:15.000Z (over 1 year ago)
- Last Synced: 2025-03-28T07:08:26.098Z (about 1 month ago)
- Topics: apollo, apollographql, devtools, graphql, graphql-schema, relay
- Language: TypeScript
- Homepage:
- Size: 2.58 MB
- Stars: 677
- Watchers: 6
- Forks: 62
- Open Issues: 59
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-graphql-schema [](https://badge.fury.io/js/get-graphql-schema)
Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)
> **Note**: Consider using [`graphql-cli`](https://github.com/graphcool/graphql-cli) instead for improved workflows.
## Install
```sh
npm install -g get-graphql-schema
```## Usage
```sh
Usage: get-graphql-schema [OPTIONS] ENDPOINT_URL > schema.graphqlFetch 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 [](https://slack.graph.cool)
Join our [Slack community](http://slack.graph.cool/) if you run into issues or have questions. We love talking to you!
