testdata/crud/v1/read/aggregate.yml
raw| 1 | data: |
| 2 | - {_id: 1, x: 11} |
| 3 | - {_id: 2, x: 22} |
| 4 | - {_id: 3, x: 33} |
| 5 | |
| 6 | tests: |
| 7 | - |
| 8 | description: "Aggregate with multiple stages" |
| 9 | operation: |
| 10 | name: aggregate |
| 11 | arguments: |
| 12 | pipeline: |
| 13 | - $sort: {x: 1} |
| 14 | - $match: |
| 15 | _id: {$gt: 1} |
| 16 | batchSize: 2 |
| 17 | |
| 18 | outcome: |
| 19 | result: |
| 20 | - {_id: 2, x: 22} |
| 21 | - {_id: 3, x: 33} |