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.