Debian Codegraph @

testdata/crud/v1/read/aggregate-collation.yml

raw
1 data:
2 - {_id: 1, x: 'ping'}
3 minServerVersion: '3.4'
4 serverless: 'forbid'
5
6 tests:
7 -
8 description: "Aggregate with collation"
9 operation:
10 name: aggregate
11 arguments:
12 pipeline:
13 - $match:
14 x: 'PING'
15 collation: { locale: 'en_US', strength: 2 } # https://www.mongodb.com/docs/manual/reference/collation/#collation-document
16 outcome:
17 result:
18 - {_id: 1, x: 'ping'}