add writeConcern to the mongodb crud workflows

This commit is contained in:
Ivan Senic 2021-09-30 13:14:20 +02:00
parent 35779298a4
commit e8b32584d6
2 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,7 @@ blocks:
- write-document: |
{
insert: "<<collection:crud_basic>>",
writeConcern: { w: "majority" },
documents: [
{
"_id": "{seq_key}",
@ -133,6 +134,7 @@ blocks:
- update-document: |
{
update: "<<collection:crud_basic>>",
writeConcern: { w: "majority" },
updates: [
{
q: { _id: "{random_key}" },

View File

@ -57,6 +57,7 @@ blocks:
- write-document: |
{
insert: "<<collection:crud_dataset>>",
writeConcern: { w: "majority" },
documents: [ { "_id": "{seq_key}", {document_json_without_id} ]
}
tags:
@ -85,6 +86,7 @@ blocks:
- update-document: |
{
update: "<<collection:crud_dataset>>",
writeConcern: { w: "majority" },
updates: [
{
q: { _id: "{random_key}" },