In GraphQL the schema file is used to describe the shape of data available for requesting. This is the core of any GraphQL API.
Some IDEs and interactive plugins are able to interpret the schema in real time, which helps with query and mutation creation or just looking up available object types and constraints in a predictable manner.
The easiest way to access the GraphQL schema is to download it yourself 🤓
Instructions
1. Install gql-sdl library using the below command:
npm install -g gql-sdl
2a. Use the command below to download the schema in JSON format to a directory on your machine
2b. Use the command below to download the schema in SDL format to a directory on your machine
gql-sdl https://api.stitch.money/graphql --json -o stitch.json
2b. Use the command below to download the schema in SDL format to a directory on your machine
gql-sdl https://api.stitch.money/graphql --sdl -o stitch.sdl
For more information on how to use GraphQL read our blog post here 🔖
Comments
0 comments
Article is closed for comments.