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.
2 parents 69bc197 + bf3befb commit 32ca098Copy full SHA for 32ca098
docs/commands.md
@@ -19,7 +19,7 @@ foreach($databases["databases"] as $database) {
19
$listcollections = new MongoDB\Driver\Command(array("listCollections" => 1));
20
$retval = $manager->executeCommand($database->name, $listcollections);
21
$collections = $retval->toArray();
22
- foreach($collections["collections"] as $collection) {
+ foreach($collections as $collection) {
23
echo "\t- ", $collection->name, "\n";
24
}
25
@@ -53,7 +53,7 @@ $createuser = new MongoDB\Driver\Command($command);
53
try {
54
$result = $manager->executeCommand("admin", $createuser);
55
$response = $result->toArray();
56
- if ($reponse["ok"]) {
+ if ($response["ok"]) {
57
echo "User created\n";
58
59
} catch(Exception $e) {
0 commit comments