summaryrefslogtreecommitdiff
path: root/src/mongo/gotools/src/github.com/mongodb/mongo-tools/vendor/go.mongodb.org/mongo-driver/data/retryable-writes/updateMany.yml
blob: b3f4bfbc4ff881998c0130992facc3ae2910076c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
data:
    - { _id: 1, x: 11 }
    - { _id: 2, x: 22 }

minServerVersion: '3.6'

tests:
    -
        description: "UpdateMany ignores retryWrites"
        operation:
            name: "updateMany"
            arguments:
                filter: { }
                update: { $inc: { x : 1 }}
        outcome:
            result:
                matchedCount: 2
                modifiedCount: 2
                upsertedCount: 0
            collection:
                data:
                  - { _id: 1, x: 12 }
                  - { _id: 2, x: 23 }