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

Aggregation does not provide a way to access a specific element of an array

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Query Optimization

      In query, specifying a sort on 'time.0', where time is an array, will sort the documents according to the first element of that array. Aggregation does not allow users to access an element of an array via field path, i.e., $time.0 is undefined on an array. For feature parity, aggregation should support syntax that gives users the ability to access an element of an array with dot notation.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            benjamin.murphy Benjamin Murphy
            Votes:
            2 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated: