Update returning with some relation
As the title says I am updating an object using this syntax:
is it possible for
returning
to return the update object with some relation, or would I need to fetch the object from the database in a separate query?
1 Reply
I believe your question is answered here https://www.answeroverflow.com/m/1177544395306827826
As far as I’m concerned, it’s not possible in Postgres (assumed that’s what you’re using). If it can’t be done via native query, it’s not possible in Drizzle
insert returning relations - Drizzle Team
Hello, is it possible to have the relations included in the returned row using insert().returning()? Or do I have to make a separate query for that?