File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,11 @@ public function execute(Server $server)
177
177
*/
178
178
public function getCommandDocument ()
179
179
{
180
- return ['delete ' => $ this ->collectionName , 'deletes ' => [['q ' => $ this ->filter ] + $ this ->createDeleteOptions ()]];
180
+ $ cmd = ['delete ' => $ this ->collectionName , 'deletes ' => [['q ' => $ this ->filter ] + $ this ->createDeleteOptions ()]];
181
+ $ cmd += $ this ->createBulkWriteOptions ();
182
+ unset($ cmd ['comment ' ]);
183
+
184
+ return $ cmd ;
181
185
}
182
186
183
187
/**
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ public function testExplainableCommandDocument(): void
88
88
'hint ' => '_id_ ' ,
89
89
],
90
90
],
91
+ 'let ' => (object ) ['a ' => 1 ],
91
92
];
92
93
$ this ->assertEquals ($ expected , $ operation ->getCommandDocument ());
93
94
}
You can’t perform that action at this time.
0 commit comments