Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1824

Support for inserting into specific array index

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Any

    Description

      Hi guys,

      Would a $insert_at operator for an array be possible? Something like:

      given a document:

      { a : [ 'one', 'three' ] }

      the update: { $insert_at : { a :

      { 1 : 'two' }

      }}

      results in:

      { a : ['one', 'two', 'three']}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              leshill Les Hill
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: