diff options
Diffstat (limited to 'src/mongo/db/views/resolved_view.cpp')
-rw-r--r-- | src/mongo/db/views/resolved_view.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/views/resolved_view.cpp b/src/mongo/db/views/resolved_view.cpp index c5d955a08d1..5fcdecc857e 100644 --- a/src/mongo/db/views/resolved_view.cpp +++ b/src/mongo/db/views/resolved_view.cpp @@ -91,6 +91,10 @@ StatusWith<BSONObj> ResolvedView::asExpandedViewAggregation( batchSizeBuilder.doneFast(); } + if (!request.getHint().isEmpty()) { + aggregationBuilder.append(AggregationRequest::kHintName, request.getHint()); + } + if (request.shouldBypassDocumentValidation()) { aggregationBuilder.append("bypassDocumentValidation", true); } |