diff --git a/docs/advanced_schemas.html b/docs/advanced_schemas.html index 177171f353..2de4b5c380 100644 --- a/docs/advanced_schemas.html +++ b/docs/advanced_schemas.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Advanced Schemas
+Mongoose v8.8.0: Advanced Schemas

diff --git a/docs/api.html b/docs/api.html index 0013ccea31..ef0d48f3f4 100644 --- a/docs/api.html +++ b/docs/api.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Redirect to API
+Mongoose v8.8.0: Redirect to API

diff --git a/docs/api/aggregate.html b/docs/api/aggregate.html index faddbf6e25..b83d2cabd7 100644 --- a/docs/api/aggregate.html +++ b/docs/api/aggregate.html @@ -1,4 +1,4 @@ -Mongoose v8.7.3: Aggregate
+Mongoose v8.8.0: Aggregate

Aggregate

+Mongoose v8.8.0: AggregationCursor

AggregationCursor

+Mongoose v8.8.0: Array

Array

+Mongoose v8.8.0: ArraySubdocument

ArraySubdocument

+Mongoose v8.8.0: Buffer

Buffer

+Mongoose v8.8.0: Connection

Connection

+Mongoose v8.8.0: Decimal128

Decimal128

+Mongoose v8.8.0: Document

Document

+Mongoose v8.8.0: DocumentArray

DocumentArray

+Mongoose v8.8.0: Error

Error

+Mongoose v8.8.0: Map

Map

+Mongoose v8.8.0: Model

Model


Model()

Parameters:

Model.applyTimestamps()

Parameters:
  • obj +«Object» object or document to apply virtuals on

    +
  • [options] +«Object»
    • [options.isUpdate=false] +«Boolean» if true, treat this as an update: just set updatedAt, skip setting createdAt. If false, set both createdAt and updatedAt

      +
    • [options.currentTime] +«Function» if set, Mongoose will call this function to get the current time.

      +

Apply this model's timestamps to a given POJO, including subdocument timestamps

+

+ + Example: + +

+
const userSchema = new Schema({ name: String }, { timestamps: true });
+const User = mongoose.model('User', userSchema);
+
+const obj = { name: 'John' };
+User.applyTimestamps(obj);
+obj.createdAt; // 2024-06-01T18:00:00.000Z
+obj.updatedAt; // 2024-06-01T18:00:00.000Z

Model.applyVirtuals()

Parameters:
  • obj «Object» object or document to apply virtuals on

  • [virtualsToApply] «Array<string>» optional whitelist of virtuals to apply

    @@ -272,9 +291,12 @@

    const obj = Test.castObject({ num: '42' }); obj.num; // 42 as a number -Test.castObject({ num: 'not a number' }); // Throws a ValidationError


Model.cleanIndexes()

Parameters:
  • [callback] -«Function» optional callback

    -
Returns:
  • «Promise,undefined,void» Returns undefined if callback is specified, returns a promise if no callback.

Deletes all indexes that aren't defined in this model's schema. Used by +Test.castObject({ num: 'not a number' }); // Throws a ValidationError


Model.cleanIndexes()

Parameters:
  • [options] +«Object»
    • [options.toDrop] +«Array<String>» if specified, contains a list of index names to drop

      +
    • [options.hideIndexes=false] +«Boolean» set to true to hide indexes instead of dropping. Requires MongoDB server 4.4 or higher

      +
Returns:
  • «Promise<String>» list of dropped or hidden index names

Deletes all indexes that aren't defined in this model's schema. Used by syncIndexes().

The returned promise resolves to a list of the dropped indexes' names as an array


Model.countDocuments()

Parameters:
  • filter @@ -1192,6 +1214,8 @@

    «Object» options to pass to ensureIndexes()

    • [options.background=null] «Boolean» if specified, overrides each index's background property

      +
    • [options.hideIndexes=false] +«Boolean» set to true to hide indexes instead of dropping. Requires MongoDB server 4.4 or higher

Returns:
  • «Promise»

Makes the indexes in MongoDB match the indexes defined in this model's schema. This function will drop any indexes that are not defined in the model's schema except the _id index, and build any indexes that diff --git a/docs/api/mongoose.html b/docs/api/mongoose.html index 9c47aacfd3..5cf0194dbf 100644 --- a/docs/api/mongoose.html +++ b/docs/api/mongoose.html @@ -1,4 +1,4 @@ -Mongoose v8.7.3: Mongoose

+Mongoose v8.8.0: Mongoose

Mongoose

+Mongoose v8.8.0: Query

Query


Query()

Parameters:

Query.prototype.schemaLevelProjections()

Parameters:
  • value +«Boolean»
Returns:
  • «Query» this
See:

Enable or disable schema level projections for this query. Enabled by default. +Set to false to include fields with select: false in the query result by default.

+

+ + Example: + +

+
const userSchema = new Schema({
+  email: { type: String, required: true },
+  passwordHash: { type: String, select: false, required: true }
+});
+const UserModel = mongoose.model('User', userSchema);
+
+const doc = await UserModel.findOne().orFail().schemaLevelProjections(false);
+
+// Contains password hash, because `schemaLevelProjections()` overrides `select: false`
+doc.passwordHash;

Query.prototype.select()

Parameters:
  • arg «Object|String|Array[String]»
Returns:
  • «Query» this
See:

Specifies which document fields to include or exclude (also known as the query "projection")

When using string syntax, prefixing a path with - will flag that path as excluded. When a path does not have the - prefix, it is included. Lastly, if a path is prefixed with +, it forces inclusion of the path, which is useful for paths excluded at the schema level.

A projection must be either inclusive or exclusive. In other words, you must diff --git a/docs/api/querycursor.html b/docs/api/querycursor.html index dc7df5e35f..f9d65d5189 100644 --- a/docs/api/querycursor.html +++ b/docs/api/querycursor.html @@ -1,4 +1,4 @@ -Mongoose v8.7.3: QueryCursor

+Mongoose v8.8.0: QueryCursor

QueryCursor

+Mongoose v8.8.0: Schema

Schema

+Mongoose v8.8.0: SchemaArray

SchemaArray

+Mongoose v8.8.0: SchemaArrayOptions

SchemaArrayOptions

+Mongoose v8.8.0: SchemaBoolean

SchemaBoolean

+Mongoose v8.8.0: SchemaBuffer

SchemaBuffer

+Mongoose v8.8.0: SchemaBufferOptions

SchemaBufferOptions

+Mongoose v8.8.0: SchemaDateOptions

SchemaDateOptions

+Mongoose v8.8.0: SchemaDocumentArray

SchemaDocumentArray

+Mongoose v8.8.0: SchemaNumber

SchemaNumber

+Mongoose v8.8.0: SchemaNumberOptions

SchemaNumberOptions

+Mongoose v8.8.0: SchemaObjectId

SchemaObjectId

+Mongoose v8.8.0: SchemaObjectIdOptions

SchemaObjectIdOptions

+Mongoose v8.8.0: SchemaString

SchemaString

+Mongoose v8.8.0: SchemaStringOptions

SchemaStringOptions

+Mongoose v8.8.0: SchemaSubdocument

SchemaSubdocument

+Mongoose v8.8.0: SchemaType

SchemaType

+Mongoose v8.8.0: SchemaTypeOptions

SchemaTypeOptions

+Mongoose v8.8.0: Subdocument

Subdocument

+Mongoose v8.8.0: VirtualType

VirtualType

+Mongoose v8.8.0: Using Async/Await with Mongoose

diff --git a/docs/browser.html b/docs/browser.html index fc3dbfb9bc..8b23b88edc 100644 --- a/docs/browser.html +++ b/docs/browser.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Browser Library
+Mongoose v8.8.0: Browser Library

diff --git a/docs/change-streams.html b/docs/change-streams.html index 80da4e7ef2..46a614c46c 100644 --- a/docs/change-streams.html +++ b/docs/change-streams.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: MongoDB Change Streams in NodeJS with Mongoose
+Mongoose v8.8.0: MongoDB Change Streams in NodeJS with Mongoose

@@ -26,20 +26,20 @@ // Insert a doc, will trigger the change stream handler above await Person.create({ name: 'Axl Rose' });

The above script will print output that looks like:

-{ - _id: { - _data: '8262408DAC000000012B022C0100296E5A10042890851837DB4792BE6B235E8B85489F46645F6964006462408DAC6F5C42FF5EE087A20004' +
{
+  _id: {
+    _data: '8262408DAC000000012B022C0100296E5A10042890851837DB4792BE6B235E8B85489F46645F6964006462408DAC6F5C42FF5EE087A20004'
   },
-  operationType: 'insert',
-  clusterTime: new Timestamp({ t: 1648397740, i: 1 }),
-  fullDocument: {
-    _id: new ObjectId("62408dac6f5c42ff5ee087a2"),
-    name: 'Axl Rose',
-    __v: 0
+  operationType: 'insert',
+  clusterTime: new Timestamp({ t: 1648397740, i: 1 }),
+  fullDocument: {
+    _id: new ObjectId("62408dac6f5c42ff5ee087a2"),
+    name: 'Axl Rose',
+    __v: 0
   },
-  ns: { db: 'test', coll: 'people' },
-  documentKey: { _id: new ObjectId("62408dac6f5c42ff5ee087a2") }
-}

Note that you must be connected to a MongoDB replica set or sharded cluster to use change streams. + ns: { db: 'test', coll: 'people' }, + documentKey: { _id: new ObjectId("62408dac6f5c42ff5ee087a2") } +}

Note that you must be connected to a MongoDB replica set or sharded cluster to use change streams. If you try to call watch() when connected to a standalone MongoDB server, you'll get the below error.

MongoServerError: The $changeStream stage is only supported on replica sets

If you're using watch() in production, we recommend using MongoDB Atlas. For local development, we recommend mongodb-memory-server or run-rs to start a replica set locally.

diff --git a/docs/check-version.html b/docs/check-version.html index 74ba768807..d190bea8af 100644 --- a/docs/check-version.html +++ b/docs/check-version.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: How to Check Your Mongoose Version
+Mongoose v8.8.0: How to Check Your Mongoose Version

diff --git a/docs/compatibility.html b/docs/compatibility.html index de34cbe7a9..c15785292c 100644 --- a/docs/compatibility.html +++ b/docs/compatibility.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: MongoDB Version Compatibility
+Mongoose v8.8.0: MongoDB Version Compatibility

diff --git a/docs/connections.html b/docs/connections.html index 2db9160679..a719b54720 100644 --- a/docs/connections.html +++ b/docs/connections.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Connecting to MongoDB
+Mongoose v8.8.0: Connecting to MongoDB

diff --git a/docs/customschematypes.html b/docs/customschematypes.html index 7db78a1cbb..1bb9149470 100644 --- a/docs/customschematypes.html +++ b/docs/customschematypes.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Custom Schema Types
+Mongoose v8.8.0: Custom Schema Types

diff --git a/docs/defaults.html b/docs/defaults.html index 6b0740495b..063c1c6882 100644 --- a/docs/defaults.html +++ b/docs/defaults.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Defaults
+Mongoose v8.8.0: Defaults

diff --git a/docs/deprecations.html b/docs/deprecations.html index 64a3e96521..51c9283680 100644 --- a/docs/deprecations.html +++ b/docs/deprecations.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Deprecation Warnings
+Mongoose v8.8.0: Deprecation Warnings

diff --git a/docs/discriminators.html b/docs/discriminators.html index 4de32e5b98..cec7f3ce8a 100644 --- a/docs/discriminators.html +++ b/docs/discriminators.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Discriminators
+Mongoose v8.8.0: Discriminators

diff --git a/docs/documents.html b/docs/documents.html index 0f830f6180..435c6633f0 100644 --- a/docs/documents.html +++ b/docs/documents.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Documents
+Mongoose v8.8.0: Documents

diff --git a/docs/enterprise.html b/docs/enterprise.html index 61bec00fed..274bf65ee8 100644 --- a/docs/enterprise.html +++ b/docs/enterprise.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose for Enterprise
+Mongoose v8.8.0: Mongoose for Enterprise

diff --git a/docs/faq.html b/docs/faq.html index 81c6681195..b910c93bdd 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: FAQ
+Mongoose v8.8.0: FAQ

diff --git a/docs/field-level-encryption.html b/docs/field-level-encryption.html index 615c1d0806..2818053f84 100644 --- a/docs/field-level-encryption.html +++ b/docs/field-level-encryption.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Field Level Encryption
+Mongoose v8.8.0: Field Level Encryption

client-side-field-level-encryption"> client-side-field-level-encryption"> diff --git a/docs/further_reading.html b/docs/further_reading.html index 0be83c7271..f01d3bece0 100644 --- a/docs/further_reading.html +++ b/docs/further_reading.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Further Reading
+Mongoose v8.8.0: Further Reading

diff --git a/docs/geojson.html b/docs/geojson.html index 402772b58a..03a20a083f 100644 --- a/docs/geojson.html +++ b/docs/geojson.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Using GeoJSON
+Mongoose v8.8.0: Using GeoJSON

diff --git a/docs/guide.html b/docs/guide.html index 3074867617..e30e251fe9 100644 --- a/docs/guide.html +++ b/docs/guide.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Schemas
+Mongoose v8.8.0: Schemas

diff --git a/docs/guides.html b/docs/guides.html index 2b787e508e..32cf5f2740 100644 --- a/docs/guides.html +++ b/docs/guides.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Schemas
+Mongoose v8.8.0: Schemas

diff --git a/docs/incompatible_packages.html b/docs/incompatible_packages.html index 58b948f8b7..2ab3194790 100644 --- a/docs/incompatible_packages.html +++ b/docs/incompatible_packages.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Known Incompatible npm Packages
+Mongoose v8.8.0: Known Incompatible npm Packages

diff --git a/docs/index.html b/docs/index.html index ffbcb41feb..e3b84e1f3d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Getting Started
+Mongoose v8.8.0: Getting Started

diff --git a/docs/jest.html b/docs/jest.html index 23e48542d0..9cc5dc9031 100644 --- a/docs/jest.html +++ b/docs/jest.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Testing Mongoose with Jest
+Mongoose v8.8.0: Testing Mongoose with Jest

jest"> jest"> diff --git a/docs/jobs.html b/docs/jobs.html index 067d7423e7..4dfae048dc 100644 --- a/docs/jobs.html +++ b/docs/jobs.html @@ -1,4 +1,4 @@ -Mongoose v8.7.3: Mongoose MongoDB Jobs

Mongoose Jobs

+Mongoose v8.8.0: Using Mongoose With AWS Lambda

diff --git a/docs/lodash.html b/docs/lodash.html index 0b0afef836..ce8e87eab3 100644 --- a/docs/lodash.html +++ b/docs/lodash.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Using Mongoose with Lodash
+Mongoose v8.8.0: Using Mongoose with Lodash

diff --git a/docs/middleware.html b/docs/middleware.html index 1dab3eae69..22777f9367 100644 --- a/docs/middleware.html +++ b/docs/middleware.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Middleware
+Mongoose v8.8.0: Middleware

diff --git a/docs/migrating_to_5.html b/docs/migrating_to_5.html index 4fc16a9dc4..9d280aebd4 100644 --- a/docs/migrating_to_5.html +++ b/docs/migrating_to_5.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Migrating to Mongoose 5
+Mongoose v8.8.0: Migrating to Mongoose 5

diff --git a/docs/migrating_to_6.html b/docs/migrating_to_6.html index 0bb4f4ebeb..a7d97acb20 100644 --- a/docs/migrating_to_6.html +++ b/docs/migrating_to_6.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Migrating to Mongoose 6
+Mongoose v8.8.0: Migrating to Mongoose 6

diff --git a/docs/migrating_to_7.html b/docs/migrating_to_7.html index b658c206d3..2accf80bea 100644 --- a/docs/migrating_to_7.html +++ b/docs/migrating_to_7.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Migrating to Mongoose 7
+Mongoose v8.8.0: Migrating to Mongoose 7

diff --git a/docs/migrating_to_8.html b/docs/migrating_to_8.html index 00944552a0..cf9dab23d8 100644 --- a/docs/migrating_to_8.html +++ b/docs/migrating_to_8.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Migrating to Mongoose 8
+Mongoose v8.8.0: Migrating to Mongoose 8

diff --git a/docs/migration.html b/docs/migration.html index 8dbc9fb045..89d473e1fb 100644 --- a/docs/migration.html +++ b/docs/migration.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Migration Guide
+Mongoose v8.8.0: Migration Guide

diff --git a/docs/models.html b/docs/models.html index ef5bcb6459..3a23f35af8 100644 --- a/docs/models.html +++ b/docs/models.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Models
+Mongoose v8.8.0: Models

diff --git a/docs/nextjs.html b/docs/nextjs.html index 1305c04cfe..cc000c0081 100644 --- a/docs/nextjs.html +++ b/docs/nextjs.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Using Mongoose With Next.js
+Mongoose v8.8.0: Using Mongoose With Next.js

next.js"> next.js"> diff --git a/docs/plugins.html b/docs/plugins.html index b4c262bd85..f6efd06e73 100644 --- a/docs/plugins.html +++ b/docs/plugins.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Plugins
+Mongoose v8.8.0: Plugins

diff --git a/docs/populate.html b/docs/populate.html index 470b644864..dab5beb4ce 100644 --- a/docs/populate.html +++ b/docs/populate.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Query Population
+Mongoose v8.8.0: Query Population

diff --git a/docs/promises.html b/docs/promises.html index 5d2c48266f..50c79af7be 100644 --- a/docs/promises.html +++ b/docs/promises.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Promises
+Mongoose v8.8.0: Promises

diff --git a/docs/queries.html b/docs/queries.html index f7b830ec67..1250e04207 100644 --- a/docs/queries.html +++ b/docs/queries.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Queries
+Mongoose v8.8.0: Queries

diff --git a/docs/schematypes.html b/docs/schematypes.html index 1d84b0cb3d..25b4e7ebdd 100644 --- a/docs/schematypes.html +++ b/docs/schematypes.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: SchemaTypes
+Mongoose v8.8.0: SchemaTypes

diff --git a/docs/search.html b/docs/search.html index 53ec9e2140..a031902ddf 100644 --- a/docs/search.html +++ b/docs/search.html @@ -1,4 +1,4 @@ -Mongoose v8.7.3: Search

Search

Search

+Mongoose v8.8.0: Sharing Schemas Between Mongoose Projects

diff --git a/docs/sponsors.html b/docs/sponsors.html index f278e36787..dc082d2a84 100644 --- a/docs/sponsors.html +++ b/docs/sponsors.html @@ -1,2 +1,2 @@ -Mongoose v8.7.3: Mongoose Sponsors

Mongoose Sponsors

The Localize platform helps businesses of all sizes easily translate websites, applications, and documents into foreign languages, opening up access to new markets quickly and efficiently. And developers of all stripes will appreciate the simplicity of installing a single code snippet that unlocks an industry-leading and secure translation experience. Learn more at localizejs.com.

Hello Club is a cloud-based club and membership management solution which offers a range of features for tracking members, finances, bookings, events, resources and access control. Hello Club makes member management easy and efficient, and caters to a large variety of organisations, including clubs, associations, non-profits, sport centres, gyms and co-working spaces. Consistent 5 star reviews, monthly new features, and a team that is dedicated to helping you succeed make Hello Club the best choice for your organisation. Try it now with a 30 day free trial!

Birb is an e-commerce referral marketing platform to reward customers for referring their business to friends and followers.

Fully Transparent Developer job board with salary ranges.

Add Your Own

Want to feature your app on this page? +Mongoose v8.8.0: Mongoose Sponsors

Mongoose Sponsors

The Localize platform helps businesses of all sizes easily translate websites, applications, and documents into foreign languages, opening up access to new markets quickly and efficiently. And developers of all stripes will appreciate the simplicity of installing a single code snippet that unlocks an industry-leading and secure translation experience. Learn more at localizejs.com.

Hello Club is a cloud-based club and membership management solution which offers a range of features for tracking members, finances, bookings, events, resources and access control. Hello Club makes member management easy and efficient, and caters to a large variety of organisations, including clubs, associations, non-profits, sport centres, gyms and co-working spaces. Consistent 5 star reviews, monthly new features, and a team that is dedicated to helping you succeed make Hello Club the best choice for your organisation. Try it now with a 30 day free trial!

Birb is an e-commerce referral marketing platform to reward customers for referring their business to friends and followers.

Fully Transparent Developer job board with salary ranges.

Add Your Own

Want to feature your app on this page? Sponsor Mongoose on GitHub!
\ No newline at end of file diff --git a/docs/subdocs.html b/docs/subdocs.html index 41c75b5773..c4f5c90873 100644 --- a/docs/subdocs.html +++ b/docs/subdocs.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: SubDocuments
+Mongoose v8.8.0: SubDocuments

diff --git a/docs/timestamps.html b/docs/timestamps.html index cd9933673d..3ed73332da 100644 --- a/docs/timestamps.html +++ b/docs/timestamps.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Timestamps
+Mongoose v8.8.0: Mongoose Timestamps

diff --git a/docs/transactions.html b/docs/transactions.html index 21f9e34938..1d4baf60bd 100644 --- a/docs/transactions.html +++ b/docs/transactions.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Transactions
+Mongoose v8.8.0: Transactions

diff --git a/docs/tutorials/custom-casting.html b/docs/tutorials/custom-casting.html index 000df0bd96..811f15da8d 100644 --- a/docs/tutorials/custom-casting.html +++ b/docs/tutorials/custom-casting.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: Custom Casting
+Mongoose v8.8.0: Mongoose Tutorials: Custom Casting

diff --git a/docs/tutorials/dates.html b/docs/tutorials/dates.html index 39b80be538..ac3e464609 100644 --- a/docs/tutorials/dates.html +++ b/docs/tutorials/dates.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: Working With Dates
+Mongoose v8.8.0: Mongoose Tutorials: Working With Dates

diff --git a/docs/tutorials/findoneandupdate.html b/docs/tutorials/findoneandupdate.html index 4d5af5c0ac..cb0f95876e 100644 --- a/docs/tutorials/findoneandupdate.html +++ b/docs/tutorials/findoneandupdate.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: How to Use `findOneAndUpdate()` in Mongoose
+Mongoose v8.8.0: Mongoose Tutorials: How to Use `findOneAndUpdate()` in Mongoose

diff --git a/docs/tutorials/getters-setters.html b/docs/tutorials/getters-setters.html index 0996bdc8b4..21cc6324fa 100644 --- a/docs/tutorials/getters-setters.html +++ b/docs/tutorials/getters-setters.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: Getters/Setters in Mongoose
+Mongoose v8.8.0: Mongoose Tutorials: Getters/Setters in Mongoose

diff --git a/docs/tutorials/lean.html b/docs/tutorials/lean.html index 3b32892008..7e3e240efa 100644 --- a/docs/tutorials/lean.html +++ b/docs/tutorials/lean.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: Faster Mongoose Queries With Lean
+Mongoose v8.8.0: Mongoose Tutorials: Faster Mongoose Queries With Lean

diff --git a/docs/tutorials/query_casting.html b/docs/tutorials/query_casting.html index 43a1b67e90..646f34767a 100644 --- a/docs/tutorials/query_casting.html +++ b/docs/tutorials/query_casting.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: Query Casting
+Mongoose v8.8.0: Mongoose Tutorials: Query Casting

diff --git a/docs/tutorials/ssl.html b/docs/tutorials/ssl.html index c82fb33ec6..294d34df49 100644 --- a/docs/tutorials/ssl.html +++ b/docs/tutorials/ssl.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: TLS/SSL Connections
+Mongoose v8.8.0: Mongoose Tutorials: TLS/SSL Connections

diff --git a/docs/tutorials/virtuals.html b/docs/tutorials/virtuals.html index 86ededdba4..be590fca45 100644 --- a/docs/tutorials/virtuals.html +++ b/docs/tutorials/virtuals.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose Tutorials: Mongoose Virtuals
+Mongoose v8.8.0: Mongoose Tutorials: Mongoose Virtuals

diff --git a/docs/typescript.html b/docs/typescript.html index 128da19ca4..01fa5b91ef 100644 --- a/docs/typescript.html +++ b/docs/typescript.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Using TypeScript with Mongoose
+Mongoose v8.8.0: Using TypeScript with Mongoose

diff --git a/docs/typescript/populate.html b/docs/typescript/populate.html index 3595925a34..16134065b5 100644 --- a/docs/typescript/populate.html +++ b/docs/typescript/populate.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose: Populate with TypeScript
+Mongoose v8.8.0: Mongoose: Populate with TypeScript

diff --git a/docs/typescript/query-helpers.html b/docs/typescript/query-helpers.html index 190bfe7a60..51d2063756 100644 --- a/docs/typescript/query-helpers.html +++ b/docs/typescript/query-helpers.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose: Query Helpers in TypeScript
+Mongoose v8.8.0: Mongoose: Query Helpers in TypeScript

diff --git a/docs/typescript/schemas.html b/docs/typescript/schemas.html index d02cbb4414..15191b1bae 100644 --- a/docs/typescript/schemas.html +++ b/docs/typescript/schemas.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose: Schemas in TypeScript
+Mongoose v8.8.0: Mongoose: Schemas in TypeScript

diff --git a/docs/typescript/statics-and-methods.html b/docs/typescript/statics-and-methods.html index cc6819e0fe..1f83ca7b56 100644 --- a/docs/typescript/statics-and-methods.html +++ b/docs/typescript/statics-and-methods.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose: Statics and Methods in TypeScript
+Mongoose v8.8.0: Mongoose: Statics and Methods in TypeScript

diff --git a/docs/typescript/statics.html b/docs/typescript/statics.html index cc748d0127..3185c01187 100644 --- a/docs/typescript/statics.html +++ b/docs/typescript/statics.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose: Statics in TypeScript
+Mongoose v8.8.0: Mongoose: Statics in TypeScript

diff --git a/docs/typescript/subdocuments.html b/docs/typescript/subdocuments.html index 7f284c78f6..164e02c852 100644 --- a/docs/typescript/subdocuments.html +++ b/docs/typescript/subdocuments.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose: Handling Subdocuments in TypeScript
+Mongoose v8.8.0: Mongoose: Handling Subdocuments in TypeScript

diff --git a/docs/typescript/virtuals.html b/docs/typescript/virtuals.html index 77523e0ab1..6c207ee4bb 100644 --- a/docs/typescript/virtuals.html +++ b/docs/typescript/virtuals.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Mongoose: Virtuals in TypeScript
+Mongoose v8.8.0: Mongoose: Virtuals in TypeScript

diff --git a/docs/validation.html b/docs/validation.html index 4f011292bd..abe03e8dac 100644 --- a/docs/validation.html +++ b/docs/validation.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Validation
+Mongoose v8.8.0: Validation

diff --git a/docs/version-support.html b/docs/version-support.html index 7df433f571..c13708ed9f 100644 --- a/docs/version-support.html +++ b/docs/version-support.html @@ -1,5 +1,5 @@ -Mongoose v8.7.3: Version Support
+Mongoose v8.8.0: Version Support

diff --git a/index.html b/index.html index ab8847988a..c0a21439e1 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -Mongoose ODM v8.7.3Fork me on GitHub

Elegant MongoDB object modeling for Node.js

-
  • Version 8.7.3

Let's face it, writing MongoDB validation, casting and business logic boilerplate is a drag. That's why we wrote Mongoose.

const mongoose = require('mongoose');
+
  • Version 8.8.0

Let's face it, writing MongoDB validation, casting and business logic boilerplate is a drag. That's why we wrote Mongoose.

const mongoose = require('mongoose');
 mongoose.connect('mongodb://127.0.0.1:27017/test');
 
 const Cat = mongoose.model('Cat', { name: String });