Debian Codegraph @

src/libmongoc/tests/json/crud/legacy/v1/write/findOneAndReplace-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": "FindOneAndReplace when one document matches with collation returning the document after modification",
16 "operation": {
17 "name": "findOneAndReplace",
18 "arguments": {
19 "filter": {
20 "x": "PING"
21 },
22 "replacement": {
23 "x": "pong"
24 },
25 "projection": {
26 "x": 1,
27 "_id": 0
28 },
29 "returnDocument": "After",
30 "sort": {
31 "x": 1
32 },
33 "collation": {
34 "locale": "en_US",
35 "strength": 2
36 }
37 }
38 },
39 "outcome": {
40 "result": {
41 "x": "pong"
42 },
43 "collection": {
44 "data": [
45 {
46 "_id": 1,
47 "x": 11
48 },
49 {
50 "_id": 2,
51 "x": "pong"
52 }
53 ]
54 }
55 }
56 }
57 ]
58 }