graphql-config-extension-prisma
v0.3.0
Published
[![CircleCI](https://circleci.com/gh/prisma/graphql-config-extension-prisma.svg?style=shield)](https://circleci.com/gh/prisma/graphql-config-extension-prisma) [![npm version](https://badge.fury.io/js/graphql-config-extension-prisma.svg)](https://badge.fur
Downloads
39,736
Readme
graphql-config-extension-prisma
Injects endpoints and headers into a GraphQL Config instance based on a given prisma.yml
Usage in .graphqlconfig.yml
projects:
database:
extensions:
prisma: prisma.yml
Usage in Node.js
import { patchConfig } from 'graphql-config-extension-prisma'
import { getGraphQLConfig, GraphQLConfigData } from 'graphql-config'
const config: GraphQLConfigData = getGraphQLConfig().config
const patchedConfig: GraphQLConfigData = patchConfig(
config,
process.cwd(),
)
Current Usages
This is currently being used in the graphql-playground-html and graphql-playgorund-electron.