Updates rows built from a changes object, scoped by a WHERE map.
Type of returned rows when RETURNING is used
RETURNING
Primary key used for shard routing
Target table name
Column to value map of changes to apply
Column to value equality conditions (required; empty throws)
Update modifiers (returning)
returning
The write result
1.2.4
await updateRow('user-123', 'users', { username: 'ada2' }, { id: 'user-123' }); Copy
await updateRow('user-123', 'users', { username: 'ada2' }, { id: 'user-123' });
Updates rows built from a changes object, scoped by a WHERE map.