Debian Codegraph @

src/libmongoc/tests/json/crud/legacy/v1/write/updateMany-collation.json

raw
1 {
2 "data": [
3 {
4 "_id": 1,
5 "x": 11
6 },
7 {
8 "_id": 2,
9 "x": "ping"
10 },
11 {
12 "_id": 3,
13 "x": "pINg"
14 }
15 ],
16 "minServerVersion": "3.4",
17 "tests": [
18 {
19 "description": "UpdateMany when many documents match with collation",
20 "operation": {
21 "name": "updateMany",
22 "arguments": {
23 "filter": {
24 "x": "ping"
25 },
26 "update": {
27 "$set": {
28 "x": "pong"
29 }
30 },
31 "collation": {
32 "locale": "en_US",
33 "strength": 2
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": 11
48 },
49 {
50 "_id": 2,
51 "x": "pong"
52 },
53 {
54 "_id": 3,
55 "x": "pong"
56 }
57 ]
58 }
59 }
60 }
61 ]
62 }