Merge pull request #361 from ivansenic/ise-mongo-update

add writeConcern to the mongodb crud workflows
This commit is contained in:
Jonathan Shook 2021-09-30 11:15:59 -05:00 committed by GitHub
commit f32caf1ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}" },