Skip to content

Tag Archives: Mongoose-API

The Mongoose Query API limit() method is used to limit the number of documents returned from the query API to the specified count. Syntax: Query.prototype.limit(val)… Read More
The Mongoose Query API findOneAndUpdate() method is used to find and update only a single document, from a collection, using the MongoDB query system. Syntax:… Read More
The Mongoose Query API replaceOne() method is used to replace a single document from a collection using the MongoDB query system. It can update only… Read More
The Mongoose Query API updateMany() method is used to update documents from a collection, using the MongoDB query system. It can update one or more… Read More
The Mongoose Schema API .prototype.plugin() method of the Mongoose API is used on the Schema object. It allows us to create plugins for the schema.… Read More
The Mongoose Schema API .prototype.virtual() method of the Mongoose API is used on the Schema object. It allows us to define virtual method and type… Read More
The Mongoose Aggregate prototype.lookup() method of the Mongoose API is used to perform aggregation tasks. It allows us to perform left join the operation between… Read More
The Mongoose SchemaType.prototype.default() method of the Mongoose API is used on the SchemaType object. It allows us to set the default value for the field… Read More
The Mongoose Aggregate API Aggregate() method of the Mongoose API is used to perform aggregation tasks. It allows us to create an aggregation pipeline. The… Read More
The Mongoose SchemaType.prototype.required() method of the Mongoose API is used on the SchemaType object. It allows us to set validator on the field for schema.… Read More
The Mongoose SchemaType.prototype.path property of the Mongoose API is used on the SchemaType object. It allows us to get the path or the field of… Read More
The Mongoose Schema API.prototype.virtualpath() method of the Mongoose API is used on the Schema object. It allows us to get the virtual object we have… Read More
The Mongoose Schema API.prototype.virtuals property of the Mongoose API is used on the Schema object. It allows us to get information about virtual we have… Read More
The Aggregate API.prototype.match() function of the Mongoose API is used to find the existing documents in the database that matches the conditions mentioned in the… Read More
The Mongoose Schema API Connection.prototype.plugins property of the Mongoose API is used on the Connection object. It allows us to determine the details about plugin… Read More