MongoCollection.ensureIndex

void ensureIndex(scope const(Tuple!(string, int))[] field_orders, IndexFlags flags = IndexFlags.none, Duration expire_time = 0.seconds) @safe
deprecated This is a legacy API, call createIndexes instead
No documentation available for this declaration.
void ensureIndex(int[string] field_orders, IndexFlags flags = IndexFlags.none, ulong expireAfterSeconds = 0) @safe
deprecated This is a legacy API, call createIndexes instead. This API is not recommended to be used because of unstable dictionary ordering.
No documentation available for this declaration.