kodepandai / lunox

Laravel-Flavoured Nodejs Framework
https://lunox.js.org
MIT License
75 stars 8 forks source link

[Feature Request] Prisma Support #20

Closed damarsimple closed 2 years ago

damarsimple commented 2 years ago

I believe this frameworks main goals to be Laravel of NodeJS right?

currently i don't see any Eloquent Query Builder like ability on this framework.

This is why i propose Prisma support as replacement for the query builder. although im not sure what is your current plant for building the query builder. i believe this is gonna be beneficial to the project.

Pros :

Cons :

i might be wrong, but please do correct me.

axmad386 commented 2 years ago

Actually the skeleton app already using objection.js for ORM. for example is User model in app/Model folder. I never use prisma before, but if it better than objection.js, maybe we can refactor the Base Model to use prisma instead.

axmad386 commented 2 years ago

For additional info, lunox migration is using knex. You can check by run artisan

pnpm artisan make:migration create_some_table

So if we change to prisma, we should change current migration command too

damarsimple commented 2 years ago

i guess i just gonna lookup how the current ORM works before thinking of the possibilty of adding prisma to this project.

Thank you for replying