$unwind should error when it encounters arrays within arrays

XMLWordPrintableJSON

    • Query Optimization
    • Major Change
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.foo.insert({x: [{y: [1, 2]}, {y: [3, 4]}]})
      WriteResult({ "nInserted" : 1 })
      > db.foo.aggregate([{$unwind: '$x.y'}])
      // Produces no output.
      

      This is not very intuitive, and there doesn't seem to be any obvious reasonable output, so we should error in this case.

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Charlie Swanson
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: