Javascript Reference v1.0

Update data

  • update() should always be combined with Filters to target the item(s) you wish to update.

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