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.
await supabase
.from('countries')
.update(\{ 'name': 'Australia' \})
.eq('id', 1);
final data = await supabase
.from('countries')
.update(\{ 'name': 'Australia' \})
.eq('id', 1)
.select();
await supabase
.from('users')
.update(\{
'address': \{
'street': 'Melrose Place',
'postcode': 90210
\}
\})
.eq('address->postcode', 90210);