testdata/crud/v1/write/deleteMany-collation.yml
raw| 1 | data: |
| 2 | - {_id: 1, x: 11} |
| 3 | - {_id: 2, x: 'ping'} |
| 4 | - {_id: 3, x: 'pINg'} |
| 5 | minServerVersion: '3.4' |
| 6 | serverless: 'forbid' |
| 7 | |
| 8 | tests: |
| 9 | - |
| 10 | description: "DeleteMany when many documents match with collation" |
| 11 | operation: |
| 12 | name: "deleteMany" |
| 13 | arguments: |
| 14 | filter: |
| 15 | x: 'PING' |
| 16 | collation: { locale: 'en_US', strength: 2 } # https://www.mongodb.com/docs/manual/reference/collation/#collation-document |
| 17 | |
| 18 | outcome: |
| 19 | result: |
| 20 | deletedCount: 2 |
| 21 | collection: |
| 22 | data: |
| 23 | - {_id: 1, x: 11} |