...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/v1/write/deleteOne-collation.yml

Documentation: go.mongodb.org/mongo-driver/testdata/crud/v1/write

     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: "DeleteOne when many documents matches with collation"
    11        operation:
    12            name: "deleteOne"
    13            arguments:
    14                filter: {x: 'PING'}
    15                collation: { locale: 'en_US', strength: 2 } # https://www.mongodb.com/docs/manual/reference/collation/#collation-document
    16
    17        outcome:
    18            result:
    19                deletedCount: 1
    20            collection:
    21                data:
    22                   - {_id: 1, x: 11}
    23                   - {_id: 3, x: 'pINg'}

View as plain text