Skip to content

Prisma 2 generator to emit TypeGraphQL types and CRUD resolvers from your Prisma 2 schema

License

Notifications You must be signed in to change notification settings

jnorris441/typegraphql-prisma

 
 

Repository files navigation

integration logo

TypeGraphQL & Prisma integration

Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema.

https://prisma.typegraphql.com/

Documentation

The documentation, installation guide, detailed description of the API and all of its features is available on the website.

Examples

You can check out some usage examples on this repo:

https://github.com/MichalLytek/typegraphql-prisma/blob/main/examples/Readme.md

Feedback

Currently released version 0.x is just a preview of the upcoming integration. For now it lacks some customization option - picking models or fields of object types to expose in the schema, hiding input fields as well as picking exposed args fields. However, the base functionality is working well, so I strongly encourage you to give it a try and play with it.

Any feedback about the developers experience or ideas about new features or enhancements are very welcome - please feel free to put your two cents by using the GitHub Discussions feature:

Future plans

In some far feature, when Prisma SDK will be ready, the typegraphql-prisma integration will also allow to use a code-first approach to build a schema.prisma and GraphQL schema at once, using classes with decorators as a single source of truth.

Stay tuned! 💪

About

Prisma 2 generator to emit TypeGraphQL types and CRUD resolvers from your Prisma 2 schema

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.2%
  • JavaScript 1.8%
  • Other 1.0%