Is there a way to do a conditonal upsert? #2995
-
|
I need a way to upsert ONLY WHEN the seq_field value in the payload is greater than the seq_field value already in the table. |
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Oct 6, 2023
Replies: 1 comment
-
|
Only through a function for now https://postgrest.org/en/stable/references/api/stored_procedures.html. After #1959 is implemented it might be possible to do: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
slloyd88
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only through a function for now https://postgrest.org/en/stable/references/api/stored_procedures.html.
After #1959 is implemented it might be possible to do: