diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2019-05-08 11:12:49 -0400 |
---|---|---|
committer | Ted Tuckman <ted.tuckman@mongodb.com> | 2019-05-28 17:43:57 -0400 |
commit | 530167637e22f2cff3ddd8551f3229db6ed97824 (patch) | |
tree | 3c42daa85a74c951fd5d63e03cf7ded1cc867827 /src/mongo/db/pipeline/parsed_exclusion_projection.h | |
parent | fc6edc2f454ae29b1daaa0f2547b8204aa27bf72 (diff) | |
download | mongo-530167637e22f2cff3ddd8551f3229db6ed97824.tar.gz |
SERVER-40826 Add getters to projection nodes
Diffstat (limited to 'src/mongo/db/pipeline/parsed_exclusion_projection.h')
-rw-r--r-- | src/mongo/db/pipeline/parsed_exclusion_projection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/parsed_exclusion_projection.h b/src/mongo/db/pipeline/parsed_exclusion_projection.h index 4d0fb1c70cd..1e381877bc5 100644 --- a/src/mongo/db/pipeline/parsed_exclusion_projection.h +++ b/src/mongo/db/pipeline/parsed_exclusion_projection.h @@ -104,6 +104,10 @@ public: return TransformerType::kExclusionProjection; } + const ExclusionNode& getRoot() const { + return *_root; + } + Document serializeTransformation( boost::optional<ExplainOptions::Verbosity> explain) const final; |