How to handle relations during insert?
Is this correct? Feels like I should be able to do it in one call, but values doesn't accept anything else
3 Replies
I think you should use db transactions to do that
https://orm.drizzle.team/docs/transactions
Transactions - DrizzleORM
Drizzle ORM | %s
@louistiti_ thanks, changed it to that 👍
But now I wonder, how do I query based on relation data?
this still gives me groups which doesn't match the relation
I guess this works
let me find an example in may codebase
This should be the good way to go !