We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704e6d2 commit 772ae9aCopy full SHA for 772ae9a
tests/server/server-executeBulkWrite-005.phpt
@@ -24,7 +24,10 @@ foreach ($writeConcerns as $wc) {
24
var_dump($result->getInsertedCount());
25
}
26
27
-$command = new MongoDB\Driver\Command(array('drop' => COLLECTION_NAME));
+$command = new MongoDB\Driver\Command([
28
+ 'delete' => COLLECTION_NAME,
29
+ 'deletes' => [ [ 'q' => (object) [], 'limit' => 0 ] ]
30
+]);
31
$server->executeCommand('local', $command);
32
33
?>
0 commit comments