Perform an UPDATE on a table or view. Always combine update() with a filter.
Parameters
Name | Type | Required |
|---|
values
| object
| Yes |
options.count
| 'exact' | 'planned'
| No |
An update() without a filter is refused unless you pass { allowAll: true }.
const { error } = await basalt
.from('countries')
.update({ name: 'Australia' })
.eq('id', 1)
Updated