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...


Mention what is the basic syntax to use index in mongodb?



Mention what is the basic syntax to use index in mongodb?..

Answer / Deepshikha Singh

The basic syntax to create an index in MongoDB is: `db.collection.createIndex( { field1: -1 } `. This creates an ascending index on `field1`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

Is mongodb stitch free?

1 Answers  


Where are mongodb databases stored?

1 Answers  


what is the role of profiler in mongodb?

1 Answers  


Can we store images in mongodb?

1 Answers  


How do I do transactions/locking in mongodb?

1 Answers  


How to retrieve data from multiple collections in mongodb?

1 Answers  


What is a storage engine in mongodb?

1 Answers  


Why should I use mongodb?

1 Answers  


Is mongodb a backend?

1 Answers  


Why do we need mongodb?

1 Answers  


When was mongodb founded?

1 Answers  


Which is better firebase or mongodb?

1 Answers  


Categories