JavaScript: Update data

Examples

Updating your data

const \{ data, error \} = await supabase
  .from('cities')
  .update(\{ name: 'Middle Earth' \})
  .match(\{ name: 'Auckland' \})

Updating JSON data

const \{ data, error \} = await supabase
  .from('users')
  .update(`
    address: \{
      street: 'Melrose Place',
      postcode: 90210
    \}
  `)
  .eq('address->postcode', 90210)