graphql-config-extension-graphcool
[![CircleCI](https://circleci.com/gh/prisma/graphql-config-extension-graphcool.svg?style=shield)](https://circleci.com/gh/prisma/graphql-config-extension-graphcool) [![npm version](https://badge.fury.io/js/graphql-config-extension-graphcool.svg)](https://
Last updated 7 years ago by timsuchanek .
Apache-2.0 · Repository · Bugs · 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 (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org