...
1{
2 "data": [
3 {
4 "_id": 1,
5 "x": 11
6 },
7 {
8 "_id": 2,
9 "x": 22
10 },
11 {
12 "_id": 3,
13 "x": 33
14 }
15 ],
16 "tests": [
17 {
18 "description": "Aggregate with multiple stages",
19 "operation": {
20 "name": "aggregate",
21 "arguments": {
22 "pipeline": [
23 {
24 "$sort": {
25 "x": 1
26 }
27 },
28 {
29 "$match": {
30 "_id": {
31 "$gt": 1
32 }
33 }
34 }
35 ],
36 "batchSize": 2
37 }
38 },
39 "outcome": {
40 "result": [
41 {
42 "_id": 2,
43 "x": 22
44 },
45 {
46 "_id": 3,
47 "x": 33
48 }
49 ]
50 }
51 }
52 ]
53}
View as plain text