-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
This function can be refactored to be more readable via:
if (localForeignFields) { std::tie(_localField, _foreignField) = *localForeignFields; } // Handle subpipeline's first stage self-applies the view def. if (shouldDiscardViewPrefix(_fromNsIsAView, pipeline, subpipelineViewPolicy, expCtx.get())) { handleSelfApplyingViewStage(fromNs, pipeline, expCtx.get()); return; } // Prepend view def and build pipeline. handleStandardViewResolution(pipeline, localForeignFields.has_value());