createIndexes() public method
Generates create indexes command.
See also https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/.
| public array createIndexes ( $databaseName, $collectionName, $indexes ) | ||
|---|---|---|
| $databaseName | string|null |
Database name. |
| $collectionName | string |
Collection name. |
| $indexes | array[] |
Indexes specification. Each specification should be an array in format: optionName => value The main options are:
See [[https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#options-for-all-index-types]] for the full list of options. |
| return | array |
Command document. |
Please login to continue.