Home

Insert data

Perform an INSERT into the table or view.

Parameters
  • values
    REQUIRED
    object

    The values to insert. Pass an object to insert a single row or an array to insert multiple rows.

  • options
    Optional
    object

    Named parameters


const { error } = await supabase
  .from('countries')
  .insert({ id: 1, name: 'Denmark' })
Need some help?

Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.