Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2765

Combine arrays when importing with mongoimport

    XMLWordPrintable

Details

    • New Feature
    • Status: Accepted
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • mongoimport

    Description

      It might be useful to have different options for merging arrays instead of just overwriting the whole array. Users could specify the field(s) for which they want a special array merge, and select a type of merge. Three possible merge types could be:

      • addToSet
      • append
      • prepend

      (SeeĀ https://developer.mongodb.com/community/forums/t/combine-arrays-when-importing-with-mongoimport/11148)

      Attachments

        Activity

          People

            Unassigned Unassigned
            tim.fogarty@mongodb.com Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: