Subdocuments What is a Subdocument? Subdocuments versus Nested Paths Subdocument Defaults Finding a Subdocument Adding Subdocs to Arrays Removing Subdocs Parents of Subdocs A...
Custom Casting Custom Casting Sponsor #native_company# — #native_desc# Mongoose 5.4.0 introduced several ways to configure SchemaTypes globally . One of these new features i...
Mongo Model injection Connection Multiple databases Hooks (middleware) Plugins Testing Learn the right way! Async configuration Example Mongo Nest supports two methods...
Transactions in Mongoose Getting Started with Transactions With Mongoose Documents and save() With the Aggregation Framework Advanced Usage Transactions in Mongoose Transa...
SchemaTypes What is a SchemaType? Example The `type` Key SchemaType Options All Schema Types Indexes String Number Date ObjectId Usage Notes String Number Dates Buffe...
Plugins Example Global Plugins Apply Plugins Before Compiling Models Officially Supported Plugins Community! Plugins Schemas are pluggable, that is, they allow for applyin...
MongoDB Server Version Compatibility MongoDB Server Version Compatibility Mongoose relies on the MongoDB Node.js Driver to talk to MongoDB. You can refer to this table for up...