adplus-dvertising
frame-decoration

Question

In the mongo shell, you can use the ______ method to return a list of the indexes on a collection.

a.

getallIndexes()

b.

getretIndexes()

c.

getIndexes()

d.

none of the mentioned

Answer: (c).getIndexes()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In the mongo shell, you can use the ______ method to return a list of the indexes on a collection.

Similar Questions

Discover Related MCQs

Q. __________ views partial execution statistics collected during plan selection.

Q. The __________ operator constrains the results of a geospatial $near or $nearSphere query to the specified distance.

Q. To force MongoDB to use a particular index for a db.collection.________ operation, specify the index with the hint() method.

Q. Specify the ______ operator to the hint() method to prevent MongoDB from using any index.

Q. ___________ selects geometries that intersect with a GeoJSON geometry.

Q. Point out the wrong statement.

Q. _______ returns geospatial objects in proximity to a point.

Q. _________ specifies a geometry in GeoJSON format to geospatial query operators.

Q. Point out the correct statement.

Q. _________ returns geospatial objects in proximity to a point on a sphere. Requires a geospatial index.

Q. __________ specifies a minimum distance to limit the results of $near and $nearSphere queries.

Q. The _________ operator specifies a circle for a $geoWithin query.

Q. ________ index must exist on a field holding coordinates before using any of the geospatial query operators.

Q. When creating a text index on multiple fields, you can specify the individual fields or you can use wildcard specifier ______

Q. Point out the wrong statement.

Q. The default language for the indexed data is ________

Q. If a collection contains documents or embedded documents that are in different languages, include a field named _______ in the documents.

Q. Point out the correct statement.

Q. To use a field with a name other than language, include the ________ option when creating the index.

Q. The default name for the index consists of each indexed field name concatenated with _______