graphql-config-extension-graphcool
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i graphql-config-extension-graphcool

Weekly Downloads

8,593

Version

1.0.11

License

Apache-2.0

Unpacked Size

22.3 kB

Total Files

11

Last publish

Collaborators

  • schickling
  • timsuchanek