Debian Codegraph @

src/libmongoc/tests/json/crud/legacy/v1/write/findOneAndUpdate-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": "FindOneAndUpdate when many documents match with collation returning the document before modification",
20 "operation": {
21 "name": "findOneAndUpdate",
22 "arguments": {
23 "filter": {
24 "x": "PING"
25 },
26 "update": {
27 "$set": {
28 "x": "pong"
29 }
30 },
31 "projection": {
32 "x": 1,
33 "_id": 0
34 },
35 "sort": {
36 "_id": 1
37 },
38 "collation": {
39 "locale": "en_US",
40 "strength": 2
41 }
42 }
43 },
44 "outcome": {
45 "result": {
46 "x": "ping"
47 },
48 "collection": {
49 "data": [
50 {
51 "_id": 1,
52 "x": 11
53 },
54 {
55 "_id": 2,
56 "x": "pong"
57 },
58 {
59 "_id": 3,
60 "x": "pINg"
61 }
62 ]
63 }
64 }
65 }
66 ]
67 }