-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework, Write Ops
-
None
-
Fully Compatible
-
Query 2019-04-08, Query 2019-04-22, Query 2019-05-06
-
0
The new syntax will look like this:
{ findAndModify: <collection-name>, query: <document>, sort: <document>, remove: <boolean>, update: <document OR pipeline>, new: <boolean>, fields: <document>, upsert: <boolean>, bypassDocumentValidation: <boolean>, writeConcern: <document>, collation: <document>, arrayFilters: <array> }
The only supported stages in a pipeline will be single-document transformations: $addFields, $project, and $replaceRoot. For this ticket, we will not support options such as collation, bypassDocumentValidation, upsert, sort, and fields. Those options will be tracked by separate work items. We will never support arrayFilters in the pipeline-style update.
- depends on
-
SERVER-40381 Add the ability to specify a pipeline to an update command
- Closed
- is depended on by
-
DRIVERS-626 Add the ability to specify a pipeline to an update command
- Closed
-
SERVER-40419 Remove feature flag guard of pipelines as updates
- Closed
-
SERVER-40399 Test support for 'collation' option in combination with a pipeline-style findAndModify
- Closed
-
SERVER-40401 Test support for 'bypassDocumentValidation' option in combination with a pipeline-style findAndModify
- Closed
-
SERVER-40403 Test support for 'writeConcern' option in combination with a pipeline-style findAndModify
- Closed
-
SERVER-40404 Add support for 'fields' option in combination with a pipeline-style findAndModify
- Closed
-
SERVER-40405 Add support for 'sort' option in combination with a pipeline-style findAndModify
- Closed
-
SERVER-40407 Add support for '$$NOW' and '$$CLUSTER_TIME' within the findAndModify command
- Closed
-
SERVER-40408 Add pipeline versions of update helpers in the shell
- Closed
-
SERVER-40411 Add FSM workload(s) to stress write conflict retrying of pipeline-style findAndModify
- Closed