Debian Codegraph @

src/libmongoc/tests/json/crud/legacy/v1/read/aggregate-out.json

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