Allow $[] syntax for specifying array indexes in updates

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The update expression

      {$set: {"a.$[5]": 0}}
      

      should update the element at position 5 of array a to 0. This syntax should be used for updating arrays in oplog entries instead of

      {$set: {"a.5": 0}}
      

      which is ambiguous as to whether it means the array element at position 5, or a field of an object with name "5".

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Tess Avitabile (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: