Eloquent -> Prisma
Hi,
I am in the process of porting a laravel application to express and I'm using Prisma for the ORM. Biggest hurdle right now is dealing with the polymorphic aspects that Eloquent supports (morphOne, morphTo, morphMany). I don't want to have to change the current strucutre of the database, so my best option right now is just writing helper functions to query or update these type of relationships.
Is there a better way to handle this?
I am in the process of porting a laravel application to express and I'm using Prisma for the ORM. Biggest hurdle right now is dealing with the polymorphic aspects that Eloquent supports (morphOne, morphTo, morphMany). I don't want to have to change the current strucutre of the database, so my best option right now is just writing helper functions to query or update these type of relationships.
Is there a better way to handle this?
ORM