diff options
Diffstat (limited to 'src/mongo/db/ops/update_request.h')
-rw-r--r-- | src/mongo/db/ops/update_request.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/ops/update_request.h b/src/mongo/db/ops/update_request.h index 5570f544c3e..6404b5dcd70 100644 --- a/src/mongo/db/ops/update_request.h +++ b/src/mongo/db/ops/update_request.h @@ -129,6 +129,14 @@ public: return _runtimeConstants; } + void setLetParameters(const boost::optional<BSONObj>& letParameters) { + _letParameters = letParameters; + } + + const boost::optional<BSONObj>& getLetParameters() const { + return _letParameters; + } + void setArrayFilters(const std::vector<BSONObj>& arrayFilters) { _updateOp.setArrayFilters(arrayFilters); } @@ -287,6 +295,9 @@ private: // System-defined constant values which may be required by the query or update operation. boost::optional<RuntimeConstants> _runtimeConstants; + // User-defined constant values to be used with a pipeline-style update. These can be specified + // by the user for each individual element of the 'updates' array in the 'update' command. + boost::optional<BSONObj> _letParameters; // The statement id of this request. StmtId _stmtId = kUninitializedStmtId; |