prismagraphql/graphql-config-extension-prisma

Name: graphql-config-extension-prisma

Owner: Prisma

Description: null

Created: 2018-01-13 21:04:27.0

Updated: 2018-05-11 11:06:52.0

Pushed: 2018-05-24 00:39:57.0

Homepage: null

Size: 89

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

graphql-config-extension-prisma

CircleCI npm version

Injects endpoints and headers into a GraphQL Config instance based on a given prisma.yml

Usage in .graphqlconfig.yml
ects:
tabase:
extensions:
  prisma: prisma.yml
Usage in Node.js
rt { patchEndpointsToConfig } from 'graphql-config-extension-prisma'
rt { getGraphQLConfig, GraphQLConfigData } from 'graphql-config'

t config: GraphQLConfigData = getGraphQLConfig().config
t patchedConfig: GraphQLConfigData = patchEndpointsToConfig(
nfig,
ocess.cwd(),

Current Usages

This is currently being used in the graphql-playground-html and graphql-playgorund-electron.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.