Sha256: 5322489c64fb1f05d4585bc22c54b8246e80b4ab1c324bae120722c0ebde8b12

Contents?: true

Size: 791 Bytes

Versions: 64

Compression:

Stored size: 791 Bytes

Contents

data:
    - {_id: 1, x: 11}
    - {_id: 2, x: 'ping'}
minServerVersion: '3.4'

tests:
    -
        description: "FindOneAndReplace when one document matches with collation returning the document after modification"
        operation:
            name: findOneAndReplace
            arguments:
                filter: {x: 'PING'}
                replacement: {x: 'pong'}
                projection: {x: 1, _id: 0}
                returnDocument: After
                sort: {x: 1}
                collation: { locale: 'en_US', strength: 2 } # https://docs.mongodb.com/master/reference/collation/#collation-document

        outcome:
            result: {x: 'pong'}
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 2, x: 'pong'}

Version data entries

64 entries across 62 versions & 2 rubygems

Version Path
tdiary-5.0.4 vendor/bundle/gems/mongo-2.4.1/spec/support/crud_tests/write/findOneAndReplace-collation.yml
mongo-2.4.1 spec/support/crud_tests/write/findOneAndReplace-collation.yml
mongo-2.4.0 spec/support/crud_tests/write/findOneAndReplace-collation.yml
mongo-2.4.0.rc1 spec/support/crud_tests/write/findOneAndReplace-collation.yml