...
1data:
2 - {_id: 1, x: 11}
3 - {_id: 2, x: 22}
4 - {_id: 3, x: 33}
5
6tests:
7 -
8 description: "DeleteMany when many documents match"
9 operation:
10 name: "deleteMany"
11 arguments:
12 filter:
13 _id: {$gt: 1}
14
15 outcome:
16 result:
17 deletedCount: 2
18 collection:
19 data:
20 - {_id: 1, x: 11}
21 -
22 description: "DeleteMany when no document matches"
23 operation:
24 name: "deleteMany"
25 arguments:
26 filter: {_id: 4}
27
28 outcome:
29 result:
30 deletedCount: 0
31 collection:
32 data:
33 - {_id: 1, x: 11}
34 - {_id: 2, x: 22}
35 - {_id: 3, x: 33}
View as plain text