-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: mongoimport
-
None
-
(copied to CRM)
Mongoimport allows for updating documents based on the input file. The --upsertFields option is available which modifies how documents are matched to the documents in the input file.
The documentation states:
--upsertFields - specifies a list of fields for the query portion of the upsert. Use this option if the _id fields in the existing documents don't match the field in the document, but another field or field combination can uniquely identify documents as a basis for performing upsert operations.
There are cases where it would be beneficial for upserts and merges to modify multiple documents in the collection. Would it be possible to add an option to instruct mongoimport to update all documents that match based on the upsertFields criteria?