Conditional Puts/Upserts #3444
-
Discussed in https://github.com/PostgREST/postgrest/discussions/3407Originally posted by slloyd88 April 12, 2024 Any suggestions? There does not seem to be anyone in the discussion board that knows how to do this. Can you please add it as a feature of PostgREST? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't see a way to this directly with a Let's keep the discussion here, I'm closing #3407 in favor of this one. |
Beta Was this translation helpful? Give feedback.
I don't see a way to this directly with a
PUT
request. Perhaps it can be done by usingPOST
and adding aTRIGGER
that does the upsert as you mention, or by using a function that does the upsert inside.Let's keep the discussion here, I'm closing #3407 in favor of this one.