...
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 "minServerVersion": "2.6",
17 "serverless": "forbid",
18 "tests": [
19 {
20 "description": "Aggregate with $out",
21 "operation": {
22 "name": "aggregate",
23 "arguments": {
24 "pipeline": [
25 {
26 "$sort": {
27 "x": 1
28 }
29 },
30 {
31 "$match": {
32 "_id": {
33 "$gt": 1
34 }
35 }
36 },
37 {
38 "$out": "other_test_collection"
39 }
40 ],
41 "batchSize": 2
42 }
43 },
44 "outcome": {
45 "collection": {
46 "name": "other_test_collection",
47 "data": [
48 {
49 "_id": 2,
50 "x": 22
51 },
52 {
53 "_id": 3,
54 "x": 33
55 }
56 ]
57 }
58 }
59 },
60 {
61 "description": "Aggregate with $out and batch size of 0",
62 "operation": {
63 "name": "aggregate",
64 "arguments": {
65 "pipeline": [
66 {
67 "$sort": {
68 "x": 1
69 }
70 },
71 {
72 "$match": {
73 "_id": {
74 "$gt": 1
75 }
76 }
77 },
78 {
79 "$out": "other_test_collection"
80 }
81 ],
82 "batchSize": 0
83 }
84 },
85 "outcome": {
86 "collection": {
87 "name": "other_test_collection",
88 "data": [
89 {
90 "_id": 2,
91 "x": 22
92 },
93 {
94 "_id": 3,
95 "x": 33
96 }
97 ]
98 }
99 }
100 }
101 ]
102}
View as plain text