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: keys: array, column names with sort order, to be