summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2019-06-08 18:54:58 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2019-06-10 15:05:53 +0100
commit8614a6d4ef7966b1868c46d368de29b5c96b6beb (patch)
tree700a107ebc242e08259b1d796461e28764c2490f /jstests
parent65f27cfb2e9f66643ba337432d3ffc4270bd1b88 (diff)
downloadmongo-8614a6d4ef7966b1868c46d368de29b5c96b6beb.tar.gz
SERVER-40408 Add support for pipelines in coll.updateMany shell helper
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/update_pipeline_shell_helpers.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/core/update_pipeline_shell_helpers.js b/jstests/core/update_pipeline_shell_helpers.js
index e81463e776a..d45830a06b5 100644
--- a/jstests/core/update_pipeline_shell_helpers.js
+++ b/jstests/core/update_pipeline_shell_helpers.js
@@ -23,6 +23,7 @@
assert.commandWorked(testColl.update({_id: 1}, [{$set: {update: true}}]));
assert.commandWorked(testColl.update({}, [{$set: {updateMulti: true}}], {multi: true}));
assert.commandWorked(testColl.updateOne({_id: 1}, [{$set: {updateOne: true}}]));
+ assert.commandWorked(testColl.updateMany({}, [{$set: {updateMany: true}}]));
assert.commandWorked(testColl.bulkWrite([
{updateOne: {filter: {_id: 1}, update: [{$set: {bulkWriteUpdateOne: true}}]}},
{updateMany: {filter: {}, update: [{$set: {bulkWriteUpdateMany: true}}]}}
@@ -49,6 +50,7 @@
update: true,
updateMulti: true,
updateOne: true,
+ updateMany: true,
bulkWriteUpdateOne: true,
bulkWriteUpdateMany: true,
unorderedBulkOpUpdateOne: true,
@@ -61,6 +63,7 @@
a: 2,
b: 3,
updateMulti: true,
+ updateMany: true,
bulkWriteUpdateMany: true,
unorderedBulkOpUpdateMulti: true,
orderedBulkOpUpdateMulti: true