src/libmongoc/tests/json/crud/legacy/v1/write/updateOne-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": "UpdateOne when one document matches with collation", |
| 16 | "operation": { |
| 17 | "name": "updateOne", |
| 18 | "arguments": { |
| 19 | "filter": { |
| 20 | "x": "PING" |
| 21 | }, |
| 22 | "update": { |
| 23 | "$set": { |
| 24 | "x": "pong" |
| 25 | } |
| 26 | }, |
| 27 | "collation": { |
| 28 | "locale": "en_US", |
| 29 | "strength": 2 |
| 30 | } |
| 31 | } |
| 32 | }, |
| 33 | "outcome": { |
| 34 | "result": { |
| 35 | "matchedCount": 1, |
| 36 | "modifiedCount": 1, |
| 37 | "upsertedCount": 0 |
| 38 | }, |
| 39 | "collection": { |
| 40 | "data": [ |
| 41 | { |
| 42 | "_id": 1, |
| 43 | "x": 11 |
| 44 | }, |
| 45 | { |
| 46 | "_id": 2, |
| 47 | "x": "pong" |
| 48 | } |
| 49 | ] |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | ] |
| 54 | } |