$ npm install graphql-config-extension-graphcool
Injects endpoints and headers into a GraphQL Config instance based on a given graphcool.yml
.graphqlconfig.yml
projects:
database:
extensions:
graphcool: graphcool.yml
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())
This is currently being used in the graphql-playground-html and graphql-playground-electron.
© 2010 - cnpmjs.org x YWFE | Home | YWFE