Javascript Reference v2.0

Update data

Perform an UPDATE on the table or view.

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

    The values to update with

    options
    Optional
    object

    Named parameters


const { error } = await supabase
  .from('countries')
  .update({ name: 'Australia' })
  .eq('id', 1)