Flutter: Update data

Perform an UPDATE on the table or view.

Parameters

Examples

Update your data

await supabase
  .from('countries')
  .update(\{ 'name': 'Australia' \})
  .eq('id', 1);

Update a record and return it

final data = await supabase
  .from('countries')
  .update(\{ 'name': 'Australia' \})
  .eq('id', 1)
  .select();

Update JSON data

await supabase
  .from('users')
  .update(\{
    'address': \{
      'street': 'Melrose Place',
      'postcode': 90210
    \}
  \})
  .eq('address->postcode', 90210);