Core Server
  1. Core Server
  2. SERVER-1824

Support for inserting into specific array index

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Any
    • Backport:
      No
    • # Replies:
      5
    • Last comment by Customer:
      false

      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']}

        Issue Links

          Activity

          Hide
          Eliot Horowitz
          added a comment -

          Possible - syntax is tricky to get right.
          Will track demand for scheduling

          Show
          Eliot Horowitz
          added a comment - Possible - syntax is tricky to get right. Will track demand for scheduling
          Hide
          Andrew Harrison
          added a comment -

          Seems to go hand in hand with SERVER-1014 ( https://jira.mongodb.org/browse/SERVER-1014 ). Hoping that you manage to figure out a way to implement these!

          Show
          Andrew Harrison
          added a comment - Seems to go hand in hand with SERVER-1014 ( https://jira.mongodb.org/browse/SERVER-1014 ). Hoping that you manage to figure out a way to implement these!
          Hide
          bg
          added a comment -

          +1 Would be extremely helpful to me.

          Show
          bg
          added a comment - +1 Would be extremely helpful to me.
          Hide
          Artem
          added a comment -

          +1 Please realize this feature!

          Show
          Artem
          added a comment - +1 Please realize this feature!
          Hide
          Scott Hernandez
          added a comment -

          dup of server-2363, which covers more.

          Show
          Scott Hernandez
          added a comment - dup of server-2363, which covers more.

            People

            • Votes:
              9 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 33 weeks, 6 days ago
                Date of 1st Reply: