Sha256: 151213b9c72badc8158555cccd4180f068051eff172f94ed6ba7509a036f967e

Contents?: true

Size: 1.06 KB

Versions: 26

Compression:

Stored size: 1.06 KB

Contents

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

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

        outcome:
            result:
                - {_id: 2, x: 22}
                - {_id: 3, x: 33}
    -
        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}
  

Version data entries

26 entries across 25 versions & 3 rubygems

Version Path
mongo-2.3.1 spec/support/crud_tests/read/aggregate.yml
mongo-2.3.0 spec/support/crud_tests/read/aggregate.yml
mongo-2.2.7 spec/support/crud_tests/read/aggregate.yml
mongo-2.2.6 spec/support/crud_tests/read/aggregate.yml
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongo-2.2.5/spec/support/crud_tests/read/aggregate.yml
mongo-2.2.5 spec/support/crud_tests/read/aggregate.yml
mongo-2.2.4 spec/support/crud_tests/read/aggregate.yml
mongo-2.2.3 spec/support/crud_tests/read/aggregate.yml
mongo-2.2.2 spec/support/crud_tests/read/aggregate.yml
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongo-2.2.1/spec/support/crud_tests/read/aggregate.yml
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongo-2.2.1/spec/support/crud_tests/read/aggregate.yml
mongo-2.2.1 spec/support/crud_tests/read/aggregate.yml
mongo-2.2.0 spec/support/crud_tests/read/aggregate.yml
mongo-2.2.0.rc0 spec/support/crud_tests/read/aggregate.yml
mongo-2.1.2 spec/support/crud_tests/read/aggregate.yml
mongo-2.1.1 spec/support/crud_tests/read/aggregate.yml
mongo-2.1.0 spec/support/crud_tests/read/aggregate.yml
mongo-2.1.0.rc0 spec/support/crud_tests/read/aggregate.yml
mongo-2.1.0.beta spec/support/crud_tests/read/aggregate.yml
mongo-2.0.6 spec/support/crud_tests/read/aggregate.yml