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