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

Add method for unwinding nested arrays

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • Query Execution

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            aaron Aaron Staple
            Votes:
            4 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: