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

Combine arrays when importing with mongoimport

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongoimport
    • Labels:

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            tim.fogarty Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: