Debian Codegraph @

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

raw
1 {
2 "collection_name": "driverdata",
3 "database_name": "test",
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 {
14 "$project": {
15 "_id": 0
16 }
17 },
18 {
19 "$sort": {
20 "a": 1
21 }
22 },
23 {
24 "$limit": 2
25 }
26 ]
27 },
28 "result": [
29 {
30 "a": 1,
31 "b": 2,
32 "c": 3
33 },
34 {
35 "a": 2,
36 "b": 3,
37 "c": 4
38 }
39 ]
40 }
41 ],
42 "expectations": [
43 {
44 "command_started_event": {
45 "command": {
46 "aggregate": "driverdata"
47 }
48 }
49 }
50 ]
51 }
52 ]
53 }