You need to get the names of all the indexes on your current collection. What is the best way to accomplish this?

  • db.people.getName();
  •  db.people.reIndex({names: 1});
  •  db.people.getIndexKeys();
  •  db.people.getIndexes();

Leave a Reply

Your email address will not be published. Required fields are marked *