3 ms·
The successor of Prisma, Prisma2 [0] does aim to solve the typing issue. It generates a fully typed JS/TS client that you can then use e.g. with autocompletion
by hjanssen 7y ago
The successor of Prisma, Prisma2 [0] does aim to solve the typing issue. It generates a fully typed JS/TS client that you can then use e.g. with autocompletion in VS Code. It is currently in preview, but they aim to release the first "stable" version in Q1 of this year, so pretty soon. You can check the current status at [1]. However, you can try it out right now by installing the preview version via npm.
I am currently playing around with it and although it has some rough edges in corner cases, for 99% of my use cases it was a breeze to work with. Particulary the integration with nexus via the nexus-prisma plugin [2] is plain awesome, i have never had a fully functional graphql endpoint standing in a timeframe of 1 hour.
I am using it in conjunction with NextJS and the resulting developer experience is great, i cant recommend enough to try it out
(I am not affiliated with prisma labs, just a happy user)
[0] https://github.com/prisma/prisma2 https://github.com/prisma/prisma2
[1] https://www.notion.so/Is-Prisma-2-Ready-8b3fba3eaf5b4bf3ab7102fd94f56148 https://www.notion.so/Is-Prisma-2-Ready-8b3fba3eaf5b4bf3ab71...
[2] https://github.com/graphql-nexus/nexus-prisma https://github.com/graphql-nexus/nexus-prisma
- nikolasburk 7y agoNikolas from the Prisma team here, thanks a lot for the shoutout! For people who want to learn more about using Prisma together with Nexus (which enables exposing DB models via GraphQL), I also recommend checking the next iteration of Nexus that we're currently working on (which will turn into a fully-fledged GraphQL application framework with TypeScript as a first-class citizen): https://nexus-future.now.sh/#/ https://nexus-future.now.sh/#/ Let me know if you have any questions!