nestjsx / crud

NestJs CRUD for RESTful APIs
https://github.com/nestjsx/crud/wiki
MIT License
4.09k stars 539 forks source link

Prisma Integration #608

Open clayrisser opened 4 years ago

clayrisser commented 4 years ago

How would I create a crud controller with Prisma?

jkolyer commented 4 years ago

I would look at porting the typeorm controller. It's pretty large, so maybe you don't need everything all at once. I may do this in a fork later, but right now I'm just learning nestjs. I think you'd need to use code generation hooked into the introspection and client creation. My project is too small right now to justify it.

clayrisser commented 4 years ago

I've already ported over a lot of it into the nestjs-crud-prisma package.

https://github.com/silicon-hills/nestjs-crud-prisma https://www.npmjs.com/package/nestjs-crud-prisma

If anyone has any feedback, that would be great.

elton-lau commented 3 years ago

I find it's indeed useful and should we create a PR and include it in the documentation?

I've already ported over a lot of it into the nestjs-crud-prisma package.

https://github.com/silicon-hills/nestjs-crud-prisma https://www.npmjs.com/package/nestjs-crud-prisma

If anyone has any feedback, that would be great.

clayrisser commented 3 years ago

Yeah I can definitely submit a PR. Give me a week to get things together for it.

andrei9669 commented 3 years ago

just discovered prisma and it looks really interesting, would love to use it as an alternative to TypeORM.

puneetv05 commented 2 years ago

hey @clayrisser thanks for the port, any updates on the PR? thanks

apperside commented 2 years ago

This would be a very nice feature!