Function MongoCollection.createIndexes
Builds one or more indexes in the collection.
string[] createIndexes
(
scope const(IndexModel)[] models,
CreateIndexOptions options = CreateIndexOptions(Nullable(DontCallDestructorT(0L), true))
) @safe;
See Also
https://docs.mongodb.com/manual/reference/command/createIndexes/