Injects endpoints and headers into a GraphQL Config instance based on a given prisma.yml
projects:
database:
extensions:
prisma: prisma.yml
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(),
)
This is currently being used in the graphql-playground-html and graphql-playgorund-electron.