Increment values in bulk
I have a function that sends notifications and I'm storing the total # of notifications sent in my db. What's the best way to increment this value from the js client without a for loop?
const { data: updatedSigners, error: e2 } = await supabase
.from('contract_signers')
.update({
last_notification: now.toISOString(),
total_notifications: ?????
})
.in('id', signers.map((signer) => signer.id));