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
Dan
Dan2y ago
yes, you can use the regular query builder for that.
cosbgn
cosbgnOP2y ago
Are relational queries planned for things like update/delete/add or they will always be just for reading data?
dylanirion
dylanirion2y ago
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
cosbgn
cosbgnOP2y ago
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
Want results from more Discord servers?
Add your server