diff options
author | Jacob Evans <jacob.evans@10gen.com> | 2019-06-03 15:11:09 -0400 |
---|---|---|
committer | Jacob Evans <jacob.evans@10gen.com> | 2019-06-04 12:43:01 -0400 |
commit | 0189411db2eb9ef6ca4d50f069e04d13b0456445 (patch) | |
tree | 9797645b22e4bbfb1939496d396784b2ff726c02 /src/mongo | |
parent | 1845167279d5d679833ef4ad950b81104e4f3c6b (diff) | |
download | mongo-0189411db2eb9ef6ca4d50f069e04d13b0456445.tar.gz |
SERVER-41473 Add ExpressionFieldPath accessor that removes "CURRENT..."
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/pipeline/expression.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h index 524f133cad1..706d5bde44a 100644 --- a/src/mongo/db/pipeline/expression.h +++ b/src/mongo/db/pipeline/expression.h @@ -1304,6 +1304,10 @@ public: return _fieldPath; } + auto getFieldPathWithoutCurrentPrefix() const { + return _fieldPath.tail(); + } + ComputedPaths getComputedPaths(const std::string& exprFieldPath, Variables::Id renamingVar) const final; |