Home

Insert data

Performs an INSERT into the table.

  • By default, every time you run insert(), the client library will make a select to return the full record. This is convenient, but it can also cause problems if your Policies are not configured to allow the select operation. If you are using Row Level Security and you are encountering problems, try setting the returning param to minimal.

final res = await supabase
  .from('cities')
  .insert([
    {'name': 'The Shire', 'country_id': 554}
  ]).execute();
Need some help?

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