summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/projection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/projection.h')
-rw-r--r--src/mongo/db/query/projection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/projection.h b/src/mongo/db/query/projection.h
index 914567e87ed..97b8d1e0d30 100644
--- a/src/mongo/db/query/projection.h
+++ b/src/mongo/db/query/projection.h
@@ -49,7 +49,7 @@ struct ProjectionDependencies {
bool containsElemMatch = false;
// Which fields are necessary to perform the projection, or boost::none if all are required.
- boost::optional<std::set<std::string>> requiredFields;
+ boost::optional<OrderedPathSet> requiredFields;
bool hasDottedPath = false;
@@ -95,7 +95,7 @@ public:
* Return which fields are required to compute the projection, assuming the entire document is
* not needed.
*/
- const std::set<std::string>& getRequiredFields() const {
+ const OrderedPathSet& getRequiredFields() const {
invariant(_type == ProjectType::kInclusion);
return *_deps.requiredFields;
}