crud icon indicating copy to clipboard operation
crud copied to clipboard

Prisma Integration

Open clayrisser opened this issue 5 years ago • 8 comments

How would I create a crud controller with Prisma?

clayrisser avatar Sep 11 '20 08:09 clayrisser

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.

jkolyer avatar Nov 06 '20 22:11 jkolyer

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 avatar Nov 06 '20 23:11 clayrisser

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.

elton-lau avatar Apr 04 '21 11:04 elton-lau

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

clayrisser avatar Apr 04 '21 20:04 clayrisser

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

andrei9669 avatar May 14 '21 09:05 andrei9669

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

puneetv05 avatar Jan 16 '22 17:01 puneetv05

This would be a very nice feature!

apperside avatar Feb 22 '22 14:02 apperside