Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: adds instructions on inserts

Paul Copplestoneae5fea761cd5
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 640681788a7..be2414fa1b9 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -502,6 +502,10 @@ pages:
insert():
title: 'Create data: insert()'
$ref: '@supabase/postgrest-js."lib/PostgrestQueryBuilder".PostgrestQueryBuilder.insert'
+ notes: |
+ - 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`.
examples:
- name: Create a record
isSpotlight: true