paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
681 stars 55 forks source link

MongoDB support #228

Closed dannysofftie closed 2 years ago

dannysofftie commented 2 years ago

Hi team, this is an amazing tool that works really well with relational databases. Does prisma.onDelete support MongoDB? If so, an example will be great.

AhmedElywa commented 2 years ago

Hi @dannysofftie, we need to let you know that on Delete plugin dropped since Prisma now support onDelete https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions#cascade

dannysofftie commented 2 years ago

Hi @AhmedElywa, Prisma currently supports onDelete on relational databases behind referentialActions flag. At the moment, MongoDB is not fully supported. Any thoughts on this?

AhmedElywa commented 2 years ago

Sorry, I have no experience with MongoDB

dannysofftie commented 2 years ago

No worries, much appreciated :+1: