graphql-config-extension-graphcool
Injects endpoints and headers into a GraphQL Config instance based on a given graphcool.yml
Last updated 8 years ago by schickling .
Apache-2.0 · Original npm
$ cnpm install graphql-config-extension-graphcool 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.0-alpha.7                                ...           alpha (8 years ago)
  • 1.0.11                                ...           latest (7 years ago)

3 Versions

  • 1.0.11                                ...           7 years ago
  • 0.0.0-alpha.7                                ...           8 years ago
  • 0.1.8                                ...           8 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org