@prisma-korea/graphql-schema-generator
v0.3.0
Published
Generate Graphql schema(SDL) from Prisma schema using Prisma generator.
Downloads
1,309
Readme
GraphQL-Schema-Generator for Prisma
Generate GraphQL schema (SDL) from Prisma schema using a custom Prisma generator.
Getting Started
- Install this package in your project using:
// pnpm, npm, or yarn
pnpm install @prisma-korea/graphql-schema-generator
- Add the generator to the
schema.prisma
:
generator graphql {
provider = "graphql-schema-generator"
createCRUD = "true"
# output = "./generated" This is default path.
}
Run
npx prisma generate
to run the generatorCheck
schema.graphql
in./prisma/generated
🎉
Custom Rules
You can apply custom rules to manipulate behavior. (Some use cases). See this for example.
Contributing
Any contributions are welcome. If you are interested, check out our guidelines.