Perform an UPDATE on the table or view.
update()
should always be combined with Filters to target the item(s) you wish to update.await supabase
.from('cities')
.update(\{ 'name': 'Middle Earth' \})
.match(\{ 'name': 'Auckland' \});
await supabase
.from('users')
.update(\{
'address': \{
'street': 'Melrose Place',
'postcode': 90210
\}
\})
.eq('address->postcode', 90210);
final List<Map<String, dynamic>> data = await supabase
.from('users')
.update(\{
'address': \{'street': 'Melrose Place', 'postcode': 90210\}
\})
.eq('address->postcode', 90210)
.select();