Looking for example of how to do bulk UPDATE or UPSERT with custom _id in v5.6.*

I have an existing index and want to add several fields to the mapping, and then use UPDATE or UPSERT to add the data.
What is the correct way to run bulk UPSERT or UPDATE with a custom key (eg. lets say I want to use a custom UUID string instead of the default _id integer)?

Submitting documents like { _id: "my-uuid1", key1: value1, ...} doesn't seem to work.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.