Sha256: 4248190330a69b931daeef17bd61e6a2f3f260a048861250ca7d6ca3e9ece3a1

Contents?: true

Size: 723 Bytes

Versions: 14

Compression:

Stored size: 723 Bytes

Contents

data:
    - {_id: 1, x: 11}
    - {_id: 2, x: 'ping'}
    - {_id: 3, x: 'pINg'}
minServerVersion: '3.4'
serverless: 'forbid'

tests:
    -
        description: "FindOneAndDelete when one document matches with collation"
        operation:
            name: findOneAndDelete
            arguments:
                filter: {_id: 2, x: 'PING'}
                projection: {x: 1, _id: 0}
                sort: {x: 1}
                collation: { locale: 'en_US', strength: 2 } # https://mongodb.com/docs/manual/reference/collation/#collation-document

        outcome:
            result: {x: 'ping'}
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 3, x: 'pINg'}

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.20.1 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mogno-2.20.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mogno-1.0.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.20.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.19.3 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.18.3 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.19.2 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.19.1 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.19.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.18.2 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.18.1 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.18.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.18.0.beta1 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml