Explore our extensive collection of questions and answers to enhance your learning experience and prepare for exams effectively
A text index enables full-text search capabilities.
$not negates a query condition in MongoDB.
skip() skips a specified number of documents in the result set.
geoNear() performs a geospatial query in MongoDB.
$pull removes elements from an array that match a condition.
The sort() method sorts the results of a query.
$push adds an element to an array field in a document.
db.stats() displays collection statistics.
$elemMatch matches documents where an array field contains a matching element.
The limit() method restricts the number of documents returned.