Sha256: 6354eb1c9616cf54ecba51b04da7c31e098482521dfff39f27649c010fc7cb48

Contents?: true

Size: 1.37 KB

Versions: 89

Compression:

Stored size: 1.37 KB

Contents

data:
    - {_id: 1, x: 11}
    - {_id: 2, x: 22}
    - {_id: 3, x: 33}

tests:
    -
        description: "FindOneAndDelete when many documents match"
        operation:
            name: findOneAndDelete
            arguments:
                filter: 
                    _id: {$gt: 1}
                projection: {x: 1, _id: 0}
                sort: {x: 1}

        outcome:
            result: {x: 22}
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 3, x: 33}
    -
        description: "FindOneAndDelete when one document matches"
        operation:
            name: findOneAndDelete
            arguments:
                filter: {_id: 2}
                projection: {x: 1, _id: 0}
                sort: {x: 1}

        outcome:
            result: {x: 22}
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 3, x: 33}
    -
        description: "FindOneAndDelete when no documents match"
        operation:
            name: findOneAndDelete
            arguments:
                filter: {_id: 4}
                projection: {x: 1, _id: 0}
                sort: {x: 1}

        outcome:
            result: null
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 2, x: 22}
                    - {_id: 3, x: 33}

Version data entries

89 entries across 87 versions & 3 rubygems

Version Path
mongo-2.21.0 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.20.1 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mogno-2.20.0 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mogno-1.0.0 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.20.0 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.19.3 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.16.4 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.17.4 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.18.3 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.19.2 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.19.1 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.19.0 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.18.2 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.17.3 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.18.1 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.18.0 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.17.2 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.16.3 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.18.0.beta1 spec/spec_tests/data/crud/write/findOneAndDelete.yml
mongo-2.16.2 spec/spec_tests/data/crud/write/findOneAndDelete.yml