onConflictDoUpdate array
Hi, is it possible to upsert/update an array?
I would want it to do it for all and not one by one
I would want it to do it for all and not one by one
await db.insert(organizations).values(organizationsResponse.organizations).onConflictDoUpdate({
target:[organizations.id],
set:{
name:organizationsResponse.organizations.map(org=>org.name)
}
});