I don't have an `id` field in my collection. Inste...
# community-help
a
I don't have an
id
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.'
.