testdata/crud/v1/read/distinct-collation.yml
raw| 1 | data: |
| 2 | - {_id: 1, string: 'PING'} |
| 3 | - {_id: 2, string: 'ping'} |
| 4 | minServerVersion: '3.4' |
| 5 | serverless: 'forbid' |
| 6 | |
| 7 | tests: |
| 8 | - |
| 9 | description: "Distinct with a collation" |
| 10 | operation: |
| 11 | name: distinct |
| 12 | arguments: |
| 13 | fieldName: "string" |
| 14 | collation: { locale: 'en_US', strength: 2 } # https://www.mongodb.com/docs/manual/reference/collation/#collation-document |
| 15 | |
| 16 | outcome: |
| 17 | result: |
| 18 | - 'PING' |