bson/testdata/crud/v1/read/aggregate-collation.yml
2025-03-17 20:58:26 +01:00

19 lines
512 B
YAML

data:
- {_id: 1, x: 'ping'}
minServerVersion: '3.4'
serverless: 'forbid'
tests:
-
description: "Aggregate with collation"
operation:
name: aggregate
arguments:
pipeline:
- $match:
x: 'PING'
collation: { locale: 'en_US', strength: 2 } # https://www.mongodb.com/docs/manual/reference/collation/#collation-document
outcome:
result:
- {_id: 1, x: 'ping'}