...
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": "DeleteMany when many documents match",
19 "operation": {
20 "name": "deleteMany",
21 "arguments": {
22 "filter": {
23 "_id": {
24 "$gt": 1
25 }
26 }
27 }
28 },
29 "outcome": {
30 "result": {
31 "deletedCount": 2
32 },
33 "collection": {
34 "data": [
35 {
36 "_id": 1,
37 "x": 11
38 }
39 ]
40 }
41 }
42 },
43 {
44 "description": "DeleteMany when no document matches",
45 "operation": {
46 "name": "deleteMany",
47 "arguments": {
48 "filter": {
49 "_id": 4
50 }
51 }
52 },
53 "outcome": {
54 "result": {
55 "deletedCount": 0
56 },
57 "collection": {
58 "data": [
59 {
60 "_id": 1,
61 "x": 11
62 },
63 {
64 "_id": 2,
65 "x": 22
66 },
67 {
68 "_id": 3,
69 "x": 33
70 }
71 ]
72 }
73 }
74 }
75 ]
76}
View as plain text