[DOCS-8632] mongoimport support for merge Created: 19/Aug/16  Updated: 18/Nov/16  Resolved: 18/Nov/16

Status: Closed
Project: Documentation
Component/s: tools
Affects Version/s: None
Fix Version/s: 3.4.0

Type: Task Priority: Major - P3
Reporter: Lucas Morales Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents TOOLS-69 MongoImport -- Support For Merge Imports Closed
Participants:
Days since reply: 7 years, 12 weeks, 5 days ago
Epic Link: 3.4 Tools Related Updates
Story Points: 1

 Description   

New option --mode=[insert|upsert|merge] defaults to insert. The distinction between the options is a follows:

  • insert: always inserts a new document
  • upsert: replace existing documents, or insert otherwise (relies on --upsertFields)
  • merge: modify existing documents, or insert otherwise (relies on --upsertFields). This preserves values that are not overwritten.

Use of --upsert is deprecated. For now, it aliases to --mode=upsert.



 Comments   
Comment by Githook User [ 18/Nov/16 ]

Author:

{u'username': u'schmalliso', u'name': u'Allison Moore', u'email': u'allison.moore@10gen.com'}

Message: DOCS-8632: adds 'mode' option to mongoimport
Branch: master
https://github.com/mongodb/docs/commit/9e325a4d12035c3df49f7b6e7b08a3ca69697618

Generated at Thu Feb 08 07:56:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.