Skip to content

Tag Archives: Mongoose-API

The Aggregate API.prototype.exec() method of the Mongoose API is used to perform aggregation tasks. It allows us to execute the aggregate pipeline on the current… Read More
The Document API.prototype.isSelected() method of the Mongoose API is used on the Document model. It allows us to check whether specific path or field is… Read More
The Aggregate API.prototype.addFields() method of the Mongoose API is used to perform aggregation task. It allows us to add new fields to the output documents.… Read More
The Queries Model.replaceOne() function of the Mongoose API is used to replace an existing document with the given document. It replaces only the first document… Read More
The Schematype.checkRequired() method of the Mongoose API is used to set and get the checkRequired() function. It overrides the required property validator and can be… Read More
The Aggregate API.prototype.cursor() method of the Mongoose API is used to perform aggregation tasks. It allows us to iterate the result set. Aggregation cursor object… Read More
The Aggregate API.prototype.append() method of the Mongoose API is used to perform aggregation tasks. It allows us to update or modify the current pipeline by… Read More
The Aggregate API.prototype.catch() method of the Mongoose API is used to perform aggregation tasks. It allows us to execute the query returned promise. It only… Read More
The Aggregate sortByCount() method of the Mongoose API is used for performing aggregation tasks. It allows us to sort and counts the number of objects… Read More
The Aggregate API.prototype.pipeline() method of the Mongoose API is used to perform aggregation tasks. It allows us to get the current pipeline operation object in… Read More
The Aggregate API.prototype.skip() method of the Mongoose API is used to perform aggregation tasks. It allows us to skip a specified number of document objects… Read More
The Aggregate then() method of the Mongoose API is used to perform the aggregation task. It allows us to handle the promise returned by the… Read More
Mongoose is an Object Data Modeling (ODM) library for MongoDB. It defines a strongly-typed schema, with default values and schema validations which are later mapped… Read More
The Aggregate sort() method of the Mongoose API is used to perform aggregation tasks. It allows us to sort all the documents in a collection… Read More
The Aggregate API.prototype.project() method of the Mongoose API is used to perform aggregation tasks. It allows us to select fields from the collection. Using this… Read More