Sha256: 90c7a47dcbe373145428038889df57052671915c5a97a5fa797fa5f079731a0f

Contents?: true

Size: 1.3 KB

Versions: 9

Compression:

Stored size: 1.3 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:
            result:
                - {_id: 2, x: 22}
                - {_id: 3, x: 33}
            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:
            result:
                - {_id: 2, x: 22}
                - {_id: 3, x: 33}
            collection:
                name: "other_test_collection"
                data:
                    - {_id: 2, x: 22}
                    - {_id: 3, x: 33}

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mongo-2.6.4 spec/support/crud_tests/read/aggregate-out.yml
mongo-2.6.2 spec/support/crud_tests/read/aggregate-out.yml
mongo-2.6.1 spec/support/crud_tests/read/aggregate-out.yml
mongo-2.6.0 spec/support/crud_tests/read/aggregate-out.yml
mongo-2.5.3 spec/support/crud_tests/read/aggregate-out.yml
mongo-2.5.2 spec/support/crud_tests/read/aggregate-out.yml
tdiary-5.0.8 vendor/bundle/gems/mongo-2.5.1/spec/support/crud_tests/read/aggregate-out.yml
mongo-2.5.1 spec/support/crud_tests/read/aggregate-out.yml
mongo-2.5.0 spec/support/crud_tests/read/aggregate-out.yml