...

Text file src/go.mongodb.org/mongo-driver/testdata/retryable-writes/legacy/updateMany.json

Documentation: go.mongodb.org/mongo-driver/testdata/retryable-writes/legacy

     1{
     2  "runOn": [
     3    {
     4      "minServerVersion": "3.6",
     5      "topology": [
     6        "replicaset",
     7        "sharded",
     8        "load-balanced"
     9      ]
    10    }
    11  ],
    12  "data": [
    13    {
    14      "_id": 1,
    15      "x": 11
    16    },
    17    {
    18      "_id": 2,
    19      "x": 22
    20    }
    21  ],
    22  "tests": [
    23    {
    24      "description": "UpdateMany ignores retryWrites",
    25      "useMultipleMongoses": true,
    26      "operation": {
    27        "name": "updateMany",
    28        "arguments": {
    29          "filter": {},
    30          "update": {
    31            "$inc": {
    32              "x": 1
    33            }
    34          }
    35        }
    36      },
    37      "outcome": {
    38        "result": {
    39          "matchedCount": 2,
    40          "modifiedCount": 2,
    41          "upsertedCount": 0
    42        },
    43        "collection": {
    44          "data": [
    45            {
    46              "_id": 1,
    47              "x": 12
    48            },
    49            {
    50              "_id": 2,
    51              "x": 23
    52            }
    53          ]
    54        }
    55      }
    56    }
    57  ]
    58}

View as plain text