The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Generate supabase-js v1 ref docs
dannykngd298b7016a1b
diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdxindex 06f1ecb2aaa..12bf3d0476f 100644--- a/apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdx+++ b/apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdx@@ -151,6 +151,7 @@ Count algorithm to use to count rows in a table.- 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.+- 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