The Mongoose Schema API Connection.prototype.get() method of the Mongoose API is used on the Connection object. It allows us to get the value of the… Read More
Tag Archives: Mongoose-API
The Mongoose Schema API Connection.prototype.createCollection() method of the Mongoose API is used on the Connection object. It allows us to create collection explicitly by providing… Read More
The Mongoose Schema API Connection.prototype.close() method of the Mongoose API is used on the Connection objects It allows us to close the mongodb connection from… Read More
The SchemaType.prototype.set() function of the Mongoose API is used to allow us to transform or manipulate data before it gets stored in MongoDB or before… Read More
The Mongoose Document API.prototype.$set() method of the Mongoose API is used on the Document model. It allows to set the values for the particular field… Read More
The Mongoose Document API.prototype.isDirectSelected() method of the Mongoose API is used on the Document model. It allows us to check whether particular path or field… Read More
The Connection.prototype.deleteModel() method of the Mongoose API is used on the Connection object. It allows us to remove the model from the connection. Using this… Read More
The Mongoose Queries findByIdAndUpdate() function is used to search for a matching document, update it in accordance with the update argument while giving any options,… Read More
The Connection.prototype.readyState property of the Mongoose API is used on the Connection object. It allows us to determine the state of the connection object. Using… Read More
The Mongoose Schema API.prototype.static() method of the Mongoose API is used on the Schema object. It allows us to define static class methods for the… Read More
The Mongoose Schema API Connection.prototype.asPromise() method of the Mongoose API is used on the Connection object. It allows us to get the result as a… Read More
The Mongoose Schema API Connection.prototype.collections property of the Mongoose API is used on the Connection object. It allows us to get the details about the… Read More
The Mongoose Schema API Connection.prototype.id of the Mongoose API is used on the Connection objects. It allows us to check how many connections does connection… Read More
The Queries Model.updateOne() function of the Mongoose API is used to update an existing document with the information mentioned in the “update” object. It updates… Read More
The Connection.prototype.useDb() method of the Mongoose API is used on the Connection object. It allows us to change the current working database. It is used… Read More