-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
ALL
Currently the bucket unpack stage does has a constraint that does not allow it to appear inside of a $facet stage, e.g., if it contains a $lookup. This was never the intended design and appears to just be an oversight.
We should remove this constraint and add a test showing that such a query works right.