mongosh
mongo
db.collection.ensureIndex(keys, options)
db.collection.ensureIndex() 이(가) db.collection.createIndex())로 대체되었습니다.
db.collection.ensureIndex()
db.collection.createIndex()