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

Add method for unwinding nested arrays

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

      Right now $unwind can only unwind an array that is not nested within another array. For example 'a.b' can be unwound in this document:

      { a:{ b:[ 1, 2 ] } }
      
      but not in this one:
      
      { a:[ { b:1 }, { b:2 } ] }
      
      and not in this one:
      
      { a:[ { b:[ 1, 2 ] } ] }
      

      Current behavior is to not unwind anything in these cases.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            aaron Aaron Staple
            Votes:
            4 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: