Sha256: 8070948bef03e21af0f2f0d891735fdfbd8478edd36b1e4e1350ac78e9839486

Contents?: true

Size: 1.45 KB

Versions: 13

Compression:

Stored size: 1.45 KB

Contents

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

tests:
    -
        description: "Aggregate with $out"
        operation:
            name: aggregate
            arguments:
                pipeline:
                    - $sort: {x: 1}
                    - $match:
                        _id: {$gt: 1}
                    - $out: "other_test_collection"
                batchSize: 2

        outcome:
            # Some drivers apparently return a cursor to the output collection.
            # Ruby driver does not, hence result is empty.
            result: []
            collection:
                name: "other_test_collection"
                data:
                    - {_id: 2, x: 22}
                    - {_id: 3, x: 33}
    -
        description: "Aggregate with $out and batch size of 0"
        operation:
            name: aggregate
            arguments:
                pipeline:
                    - $sort: {x: 1}
                    - $match:
                        _id: {$gt: 1}
                    - $out: "other_test_collection"
                batchSize: 0

        outcome:
            # Some drivers apparently return a cursor to the output collection.
            # Ruby driver does not, hence result is empty.
            result: []
            collection:
                name: "other_test_collection"
                data:
                    - {_id: 2, x: 22}
                    - {_id: 3, x: 33}

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongo-2.8.0/spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.9.2 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.9.1 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.9.1.rc0 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.9.0 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.9.0.rc1 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.9.0.rc0 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.8.0 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.7.2 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.8.0.rc0 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.7.1 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.7.0 spec/spec_tests/data/crud/read/aggregate-out.yml
mongo-2.7.0.rc0 spec/spec_tests/data/crud/read/aggregate-out.yml