Debian Codegraph @

testdata/atlas-data-lake-testing/aggregate.yml

raw
1 collection_name: &collection_name "driverdata"
2 database_name: &database_name "test"
3
4 tests:
5 -
6 description: "Aggregate with pipeline (project, sort, limit)"
7 operations:
8 -
9 object: collection
10 name: aggregate
11 arguments:
12 pipeline:
13 - $project: { _id: 0 }
14 - $sort: { a: 1 }
15 - $limit: 2
16 result:
17 - { a: 1, b: 2, c: 3 }
18 - { a: 2, b: 3, c: 4 }
19 expectations:
20 -
21 command_started_event:
22 command:
23 aggregate: *collection_name