Package Exports
- graphql-config
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (graphql-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GraphQL Config

The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs).
- website: https://graphql-config.com
GraphQL Config file
schema: ./schema.json
documents: ./src/components/**/*.jsxUsage
Install:
yarn add graphql-config
npm install graphql-configUse:
Very basic outline in TypeScript:
import {loadConfig} from 'graphql-config';
async function main() {
const config = await loadConfig({...});
const schema = await config.getDefault().getSchema();
}The ... expression in the loadConfig function is a placeholder for a LoadConfigOptions object; leaving this space empty will pass defaults.
Here is a more robust, working example using a generate extension from the GraphQL CLI Backend Template:
const config = await loadConfig({
extensions: [() => ({ name: 'generate'})]
});
const generateConfig = await config!.getDefault().extension('generate');
...
const schema = makeExecutableSchema({
typeDefs,
resolvers
});Help & Community 
Join our Discord chat if you run into issues or have questions. We love talking to you!