Docs Home → Develop Applications → MongoDB Manual
db.collection.ensureIndex()
Note
Removed in 5.0
db.collection.ensureIndex()
has been replaced by
db.collection.createIndex()
.
Docs Home → Develop Applications → MongoDB Manual
db.collection.ensureIndex()
has been replaced by
db.collection.createIndex()
.