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

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Aggregation Framework
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-query-optimization Backlog - Query Optimization
              benjamin.murphy Benjamin Murphy
              Votes:
              2 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated: