Debian Codegraph @

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

raw
1 {
2 "data": [
3 {
4 "_id": 1,
5 "x": 11
6 },
7 {
8 "_id": 2,
9 "x": "ping"
10 }
11 ],
12 "minServerVersion": "3.4",
13 "tests": [
14 {
15 "description": "ReplaceOne when one document matches with collation",
16 "operation": {
17 "name": "replaceOne",
18 "arguments": {
19 "filter": {
20 "x": "PING"
21 },
22 "replacement": {
23 "_id": 2,
24 "x": "pong"
25 },
26 "collation": {
27 "locale": "en_US",
28 "strength": 2
29 }
30 }
31 },
32 "outcome": {
33 "result": {
34 "matchedCount": 1,
35 "modifiedCount": 1,
36 "upsertedCount": 0
37 },
38 "collection": {
39 "data": [
40 {
41 "_id": 1,
42 "x": 11
43 },
44 {
45 "_id": 2,
46 "x": "pong"
47 }
48 ]
49 }
50 }
51 }
52 ]
53 }