Sha256: 406ba3f17912c7052863b25c2e6f103c82143d97efc03f88c8d8419b25d9c24f

Contents?: true

Size: 723 Bytes

Versions: 11

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://docs.mongodb.com/manual/reference/collation/#collation-document

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.17.4 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.17.3 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.17.2 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.16.3 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.16.2 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.17.1 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.16.1 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.17.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.16.0 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml
mongo-2.16.0.alpha1 spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml