Perform an UPDATE on the table or view.
update()
should always be combined with Filters to target the item(s) you wish to update.The values to update with
Named parameters
const \{ error \} = await supabase
.from('countries')
.update(\{ name: 'Australia' \})
.eq('id', 1)
const \{ data, error \} = await supabase
.from('countries')
.update(\{ name: 'Australia' \})
.eq('id', 1)
.select()
const \{ data, error \} = await supabase
.from('users')
.update(\{
address: \{
street: 'Melrose Place',
postcode: 90210
\}
\})
.eq('address->postcode', 90210)
.select()