Which function is used to create an index?
Answer Posted / Sheela Maurya
In MongoDB, you can create an index using the createIndex() method. Example: db.collection.createIndex({ field1: 1 })
Post New Answer View All Answers
How did mongodb get its name?
2
what is the command syntax for inserting a document?
6
How to define array in mongoose schema?