Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T15:11:15.000Z (10 months ago)
- Last Synced: 2024-05-01T22:51:00.667Z (7 months ago)
- Topics: apollo, apollographql, devtools, graphql, graphql-schema, relay
- Language: TypeScript
- Homepage:
- Size: 2.58 MB
- Stars: 654
- Watchers: 7
- Forks: 61
- Open Issues: 60
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-graphql-schema [![npm version](https://badge.fury.io/js/get-graphql-schema.svg)](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 [![Slack Status](https://slack.graph.cool/badge.svg)](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!
![](http://i.imgur.com/5RHR6Ku.png)