MCQs > IT & Programming > MongoDB > How can you create index on a particular key in MongoDB?

MongoDB MCQs

How can you create index on a particular key in MongoDB?

Answer

Correct Answer: db.COLLECTION_NAME.createIndex({ KEY: 1 })

Explanation:

Note: This Question is unanswered, help us to find answer for this one

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it