...
1data:
2 - {_id: 1, x: 11}
3 - {_id: 2, x: 22}
4 - {_id: 3, x: 33}
5
6tests:
7 -
8 description: "Estimated document count"
9 operation:
10 name: estimatedDocumentCount
11 arguments: { }
12
13 outcome:
14 result: 3
15 -
16 description: "Count documents without a filter"
17 operation:
18 name: countDocuments
19 arguments:
20 filter: { }
21
22 outcome:
23 result: 3
24 -
25 description: "Count documents with a filter"
26 operation:
27 name: countDocuments
28 arguments:
29 filter:
30 _id: {$gt: 1}
31
32 outcome:
33 result: 2
34 -
35 description: "Count documents with skip and limit"
36 operation:
37 name: countDocuments
38 arguments:
39 filter: {}
40 skip: 1
41 limit: 3
42
43 outcome:
44 result: 2
45 -
46 description: "Deprecated count without a filter"
47 operation:
48 name: count
49 arguments:
50 filter: { }
51
52 outcome:
53 result: 3
54 -
55 description: "Deprecated count with a filter"
56 operation:
57 name: count
58 arguments:
59 filter:
60 _id: {$gt: 1}
61
62 outcome:
63 result: 2
64 -
65 description: "Deprecated count with skip and limit"
66 operation:
67 name: count
68 arguments:
69 filter: {}
70 skip: 1
71 limit: 3
72
73 outcome:
74 result: 2
View as plain text