...
1data:
2 - {_id: 1, x: 11}
3 - {_id: 2, x: 'ping'}
4minServerVersion: '3.4'
5serverless: 'forbid'
6
7tests:
8 -
9 description: "ReplaceOne when one document matches with collation"
10 operation:
11 name: "replaceOne"
12 arguments:
13 filter: {x: 'PING'}
14 replacement: {_id: 2, x: 'pong'}
15 collation: {locale: 'en_US', strength: 2} # https://www.mongodb.com/docs/manual/reference/collation/#collation-document
16
17 outcome:
18 result:
19 matchedCount: 1
20 modifiedCount: 1
21 upsertedCount: 0
22 collection:
23 data:
24 - {_id: 1, x: 11}
25 - {_id: 2, x: 'pong'}
View as plain text