Relational queries for editing?
Relational queries look great, but they are just for reading data right? Nothing like
updateOne
or deleteOne
etc right?4 Replies
yes, you can use the regular query builder for that.
Are relational queries planned for things like update/delete/add or they will always be just for reading data?
I had a momentary use case for an update join during migration but it didn't seem like there was a join method on update(). Got it done with sql magic
The main issue for me is the need to import
{ eq, lt, gte, ne }
and models everywhere, it get's messy
relational queries are so much cleaner