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

mongoimport support for merge

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.4.0
    • None
    • tools
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 12 weeks, 5 days ago