Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8632

mongoimport support for merge

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0
    • Affects Version/s: None
    • Component/s: tools
    • Labels:
      None

      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.

            Assignee:
            allison.moore@mongodb.com Allison Reinheimer Moore
            Reporter:
            lucas.morales Lucas Morales
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 23 weeks ago