createCollection() public method
Generates 'create collection' command.
https://docs.mongodb.com/manual/reference/method/db.createCollection/
public array createCollection ( $collectionName, array $options = [] ) | ||
---|---|---|
$collectionName | string |
Collection name. |
$options | array |
Collection options in format: "name" => "value" |
return | array |
Command document. |
Please login to continue.