Skip to content

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

Update spec/supabase_js_v1_legacy.yml

dng702be301226b
diff --git a/spec/supabase_js_v1_legacy.yml b/spec/supabase_js_v1_legacy.yml
index 8f106cac142..354e7bb0052 100644
--- a/spec/supabase_js_v1_legacy.yml
+++ b/spec/supabase_js_v1_legacy.yml
@@ -961,7 +961,7 @@ pages:
notes: |
- Primary keys should be included in the data payload in order for an update to work correctly.
- Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys.
- - It is currently not possible to insert new data and update existing data at the same time. However, a [workaround](https://github.com/supabase/postgrest-js/issues/173#issuecomment-825124550) can be employed using Postgres functions/triggers.
+ - If you need to insert new data and update existing data at the same time, use [Postgres triggers](https://github.com/supabase/postgrest-js/issues/173#issuecomment-825124550).
examples:
- name: Upsert your data
isSpotlight: true