...
1{
2 "data": [
3 {
4 "_id": 1,
5 "x": 11
6 },
7 {
8 "_id": 2,
9 "x": 22
10 }
11 ],
12 "collection_name": "default_write_concern_coll",
13 "database_name": "default_write_concern_db",
14 "runOn": [
15 {
16 "minServerVersion": "4.2"
17 }
18 ],
19 "tests": [
20 {
21 "description": "Aggregate with $merge omits default write concern",
22 "operations": [
23 {
24 "object": "collection",
25 "databaseOptions": {
26 "writeConcern": {}
27 },
28 "collectionOptions": {
29 "writeConcern": {}
30 },
31 "name": "aggregate",
32 "arguments": {
33 "pipeline": [
34 {
35 "$match": {
36 "_id": {
37 "$gt": 1
38 }
39 }
40 },
41 {
42 "$merge": {
43 "into": "other_collection_name"
44 }
45 }
46 ]
47 }
48 }
49 ],
50 "expectations": [
51 {
52 "command_started_event": {
53 "command": {
54 "aggregate": "default_write_concern_coll",
55 "pipeline": [
56 {
57 "$match": {
58 "_id": {
59 "$gt": 1
60 }
61 }
62 },
63 {
64 "$merge": {
65 "into": "other_collection_name"
66 }
67 }
68 ],
69 "writeConcern": null
70 }
71 }
72 }
73 ],
74 "outcome": {
75 "collection": {
76 "name": "other_collection_name",
77 "data": [
78 {
79 "_id": 2,
80 "x": 22
81 }
82 ]
83 }
84 }
85 }
86 ]
87}
View as plain text