Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Which function is used to create an index?



Which function is used to create an index?..

Answer / Sheela Maurya

In MongoDB, you can create an index using the createIndex() method. Example: db.collection.createIndex({ field1: 1 })

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

What are the different types of nosql databases? Give some example.

1 Answers  


What is a table called in mongodb?

1 Answers  


What will happen when you remove a document from database in mongodb? Does mongodb remove it from disk?

1 Answers  


Is mongodb better than mysql? Explain

1 Answers  


Who bought mongodb?

1 Answers  


What are documents in mongodb?

1 Answers  


How to determine the size of an index?

1 Answers  


How is mongodb data stored?

1 Answers  


What is a master or primary?

1 Answers  


How to list all indexes in mongodb?

1 Answers  


Explain what are indexes in mongodb?

1 Answers  


How to define array in mongoose schema?

0 Answers  


Categories