You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm submitting some form data to Supabase where some data exists already (therefore we have primary key data for it), and some data is new (no primary key data for it).
I'd like to save this data to the database in one go using bulk upsert. Currently attempting to do so results in the following error:
{"code":"PGRST102","details":null,"hint":null,"message":"All object keys must match"}
Supabase will accept this payload, and handle both new inserts and updates automatically.
Describe alternatives you've considered
Making two Supabase API calls. This is not ideal because the JS library (and the backing Postgres library) do not support transactions either. We can't guarantee that both insert and update go through, or neither do.
The text was updated successfully, but these errors were encountered:
Feature request
Is your feature request related to a problem? Please describe.
I'm submitting some form data to Supabase where some data exists already (therefore we have primary key data for it), and some data is new (no primary key data for it).
I'd like to save this data to the database in one go using bulk upsert. Currently attempting to do so results in the following error:
This is the payload:
Describe the solution you'd like
Supabase will accept this payload, and handle both new inserts and updates automatically.
Describe alternatives you've considered
Making two Supabase API calls. This is not ideal because the JS library (and the backing Postgres library) do not support transactions either. We can't guarantee that both insert and update go through, or neither do.
The text was updated successfully, but these errors were encountered: