Sha256: e186afb316b3eb710b0862cffa80d582cfc8dabadc4225898b941f5d145fb104

Contents?: true

Size: 740 Bytes

Versions: 14

Compression:

Stored size: 740 Bytes

Contents

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

tests:
    -
        description: "ReplaceOne when one document matches with collation"
        operation:
            name: "replaceOne"
            arguments:
                filter: {x: 'PING'}
                replacement: {_id: 2, x: 'pong'}
                collation: {locale: 'en_US', strength: 2} # https://mongodb.com/docs/manual/reference/collation/#collation-document

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

Version data entries

14 entries across 14 versions & 2 rubygems

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