The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs).
- website: https://graphql-config.com
schema: ./schema.json
documents: ./src/components/**/*.jsx
Install:
yarn add graphql-config
npm install graphql-config
Use:
import {loadConfig} from 'graphql-config';
async function main() {
const config = await loadConfig();
const schema = await config.getDefault().getSchema();
}
Join our Discord chat if you run into issues or have questions. We love talking to you!