Aadarsh
10/31/2023, 5:18 AMid
field in my collection. Instead, I have the field main_key
which is the primary key for multiple collections. Is it possible to specify the main_key
field while updating the collection with updated main_key
values in other fields of the documents? Upsert and emplace just create duplicate documents with the main_key
which is not required. Using update
results in error 'For update, the 'id' key must be provided.'
.