Name: graphql-config-extension-graphcool
Owner: Prisma
Description: null
Created: 2017-12-11 16:17:52.0
Updated: 2018-01-12 18:31:12.0
Pushed: 2018-05-24 00:40:21.0
Homepage: null
Size: 76
Language: TypeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Injects endpoints and headers into a GraphQL Config instance based on a given graphcool.yml
.graphqlconfig.yml
ects:
tabase:
extensions:
graphcool: graphcool.yml
rt {patchEndpointsToConfig} from 'graphql-config-extension-graphcool'
rt {getGraphQLConfig, GraphQLConfigData} from 'graphql-config'
t config: GraphQLConfigData = getGraphQLConfig().config
t patchedConfig: GraphQLConfigData = patchEndpointsToConfig(config, process.cwd())
This is currently being used in the graphql-playground-html and graphql-playground-electron.