graphql-config-extension-graphcool

js
[](https://circleci.com/gh/prisma/graphql-config-extension-graphcool) [](https://
Version 1.0.11 License Apache-2.0
INSTALL
Type:
<script src=" https://cdn.jsdelivr.net/npm/graphql-config-extension-graphcool@1.0.11/dist/index.min.js "></script>
graphql-config-extension-graphcool
Injects endpoints and headers into a GraphQL Config instance based on a given graphcool.yml
Usage in .graphqlconfig.yml
projects:
database:
extensions:
graphcool: graphcool.yml
Usage in Node.js
import {patchEndpointsToConfig} from 'graphql-config-extension-graphcool'
import {getGraphQLConfig, GraphQLConfigData} from 'graphql-config'
const config: GraphQLConfigData = getGraphQLConfig().config
const patchedConfig: GraphQLConfigData = patchEndpointsToConfig(config, process.cwd())
Current Usages
This is currently being used in the graphql-playground-html and graphql-playground-electron.