Which of the following is correct syntax for creating an index?
Correct Answer: db.mycol.createIndex({"title":1})
Explanation:
Note: This Question is unanswered, help us to find answer for this one
MongoDB Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More MongoDB MCQ Questions
What is Profiler?
Which collections are used by MongoDB to store GridFS data?
Which is correct for _id in MongoDB?
Which method can be used in MongoDB for relating documents?
Which is a primary key in MongoDB?
Which is the correct calling of creating an index?
Which option exist in ensureIndex method?
Which is stage of aggregation?
Which is true? Check all that apply.
Choose the best description of the query below:- db.users.find ({ 'name' : /m/i } ).pretty()