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