mrowles / graphql-config

One configuration for all your GraphQL tools (supported by most tools, editors & IDEs)

Home Page:https://graphql-config.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL Config

GraphQL Config

The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs).

GraphQL Config file

schema: ./schema.json
documents: ./src/components/**/*.jsx

Usage

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();
}

Help & Community Discord Chat

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

About

One configuration for all your GraphQL tools (supported by most tools, editors & IDEs)

https://graphql-config.com

License:MIT License


Languages

Language:TypeScript 81.1%Language:JavaScript 15.9%Language:CSS 2.1%Language:HTML 0.9%