As part of SERVER-79181 we integrated QuerySettings into CanonicalQuery.
After having a conversation with david.storch@mongodb.com, we agreed that:
- ExpressionContext is a better place for it
- When running $lookup a sub-pipeline can be created and executed, however, at this moment, we can not access QuerySettings, as $lookup and similar stages do not have reference to CanonicalQuery
Goal for this ticket would be to remove QuerySettings from CanonicalQuery and move it into ExpressionContext.
- is related to
-
SERVER-77080 Introduce query settings into explain output for aggregation
- Closed
-
SERVER-79181 Apply QuerySettings for find commands
- Closed