Database Management MongoDB Subjective
Sep 25, 2025

How do you create an index in MongoDB?

Detailed Explanation
Use the createIndex() method: db.collection.createIndex({field: 1})
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback