API for bulk update? #1945
Answered
by
steve-chavez
liaujianjie
asked this question in
Q&A
-
Presently, there is support for bulk insertion and bulk upsertion in the docs. Is there support for bulk updates by primary key? ExampleScenario
HTTP requestPATCH /people HTTP/1.1
Content-Type: application/json
[
{ "id": 1, nationality: "Singaporean" },
{ "id": 2, nationality: "South Korean" }
] Expected resultThe rows of ids |
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Sep 14, 2021
Replies: 1 comment 2 replies
-
Hey @liaujianjie, Wouldn't UPSERT( |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
wolfgangwalther
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @liaujianjie,
Wouldn't UPSERT(
Prefer: resolution=merge-duplicates
) also work for that case? If all the ids already exist, then all the operations would be updates.