diff options
Diffstat (limited to 'src/mongo/db/query/count_command_as_aggregation_command.cpp')
-rw-r--r-- | src/mongo/db/query/count_command_as_aggregation_command.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/count_command_as_aggregation_command.cpp b/src/mongo/db/query/count_command_as_aggregation_command.cpp index 418fe629a6a..668baeb7c6b 100644 --- a/src/mongo/db/query/count_command_as_aggregation_command.cpp +++ b/src/mongo/db/query/count_command_as_aggregation_command.cpp @@ -31,7 +31,7 @@ #include "mongo/db/query/count_command_as_aggregation_command.h" -#include "mongo/db/query/query_request.h" +#include "mongo/db/query/query_request_helper.h" #include "mongo/util/str.h" namespace mongo { @@ -101,7 +101,8 @@ StatusWith<BSONObj> countCommandAsAggregationCommand(const CountCommand& cmd, if (auto unwrapped = cmd.getQueryOptions()) { if (!unwrapped->isEmpty()) { - aggregationBuilder.append(QueryRequest::kUnwrappedReadPrefField, unwrapped.get()); + aggregationBuilder.append(query_request_helper::kUnwrappedReadPrefField, + unwrapped.get()); } } |