Will Drizzle throw when we attempt to update and zero records where updated?
Lets say we have a query where we update where id = input.id.
If there was no row where that criteria is met, will Drizzle throw? or will it go through?
Thanks!
2 Replies
Update doesn't check if the record exists, so it will go through without any effect
Sweet, I will have to run .returning() and ensure the right number of records are returned else throw in transaction