Skip to content

prisma-archive/graphql-config-extension-graphcool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-config-extension-graphcool

CircleCI npm version

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.