Skip to content

Tag Archives: Mongoose-API

The Mongoose Query API lt() method is used to scan all the documents in a collection and return those whose path values are less than… Read More
The Mongoose API Query() method of the Mongoose API is used as constructor to create reference of Query. It allows us to create query objects… Read More
The Mongoose Document API Model.populate() method of the Mongoose API is used on the Document model. It allows to replace a field in a collection… Read More
The API.prototype.Aggregate() method of the Mongoose API is used to build aggregation pipelines. Aggregation is a method of processing many documents by sending them through… Read More
The Mongoose Query API lte() method is used to scan all the documents in a collection and return those whose path values are less than… Read More
The Mongoose Query API in() method is used to scan all the documents in a collection and return those whose path values lie in the… Read More
The Mongoose Query API post() method is used to add a post middleware to the mongoose query instance, which can be used in performing post-query… Read More
The Mongoose Document API  Model.prototype.$where() method of the Mongoose API is used on the Document model. It allows putting the where condition in the MongoDB… Read More
The Mongoose Query API.prototype.read() method of the Mongoose API is used on the Query objects. It allows us to tell the MongoDB from which node… Read More
The Mongoose Document API  Model.updateMany() method of the Mongoose API is used on the Document model. It allows updating more than one document in one… Read More
The Mongoose Query API.prototype.maxTimeMS() method of the Mongoose API is used on the Query objects. It allows us to set the maximum time limit for… Read More
The Mongoose Query API.prototype.lean() method of the Mongoose API is used on the Query objects. It allows us to know whether the returned document is… Read More
The Mongoose Query API and() method is used to add additional filters to the current mongoose query instance. Syntax: Query.prototype.and(array) Parameters: It accepts the following… Read More
The Mongoose Query API set() method is used to add a $set middleware that helps in updating one or more than one MongoDB document depending… Read More
The Mongoose Schema API pre() method is used to add a pre-hook to the mongoose Schema methods and can be used to perform pre Schema… Read More

Start Your Coding Journey Now!