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

Add method for unwinding nested arrays

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • 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

        Issue Links

          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: