Package Exports
- graphql-config-extension-prisma
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (graphql-config-extension-prisma) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.