...
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": "Estimated document count",
19 "operation": {
20 "name": "estimatedDocumentCount",
21 "arguments": {}
22 },
23 "outcome": {
24 "result": 3
25 }
26 },
27 {
28 "description": "Count documents without a filter",
29 "operation": {
30 "name": "countDocuments",
31 "arguments": {
32 "filter": {}
33 }
34 },
35 "outcome": {
36 "result": 3
37 }
38 },
39 {
40 "description": "Count documents with a filter",
41 "operation": {
42 "name": "countDocuments",
43 "arguments": {
44 "filter": {
45 "_id": {
46 "$gt": 1
47 }
48 }
49 }
50 },
51 "outcome": {
52 "result": 2
53 }
54 },
55 {
56 "description": "Count documents with skip and limit",
57 "operation": {
58 "name": "countDocuments",
59 "arguments": {
60 "filter": {},
61 "skip": 1,
62 "limit": 3
63 }
64 },
65 "outcome": {
66 "result": 2
67 }
68 },
69 {
70 "description": "Deprecated count without a filter",
71 "operation": {
72 "name": "count",
73 "arguments": {
74 "filter": {}
75 }
76 },
77 "outcome": {
78 "result": 3
79 }
80 },
81 {
82 "description": "Deprecated count with a filter",
83 "operation": {
84 "name": "count",
85 "arguments": {
86 "filter": {
87 "_id": {
88 "$gt": 1
89 }
90 }
91 }
92 },
93 "outcome": {
94 "result": 2
95 }
96 },
97 {
98 "description": "Deprecated count with skip and limit",
99 "operation": {
100 "name": "count",
101 "arguments": {
102 "filter": {},
103 "skip": 1,
104 "limit": 3
105 }
106 },
107 "outcome": {
108 "result": 2
109 }
110 }
111 ]
112}
View as plain text