mongoose 6.9.0 → 6.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/browser.umd.js +1 -1
- package/lib/aggregate.js +41 -42
- package/lib/connection.js +6 -6
- package/lib/cursor/AggregationCursor.js +1 -1
- package/lib/cursor/QueryCursor.js +1 -1
- package/lib/document.js +12 -12
- package/lib/drivers/node-mongodb-native/collection.js +1 -1
- package/lib/error/index.js +21 -10
- package/lib/error/serverSelection.js +1 -1
- package/lib/helpers/document/applyDefaults.js +14 -3
- package/lib/helpers/query/cast$expr.js +1 -1
- package/lib/helpers/query/castUpdate.js +0 -12
- package/lib/index.js +30 -7
- package/lib/model.js +61 -61
- package/lib/query.js +142 -141
- package/lib/schema/SubdocumentPath.js +1 -1
- package/lib/schema/operators/text.js +1 -1
- package/lib/schema/uuid.js +3 -3
- package/lib/schema.js +2 -1
- package/lib/schematype.js +1 -1
- package/lib/types/array/index.js +1 -1
- package/lib/types/array/methods/index.js +4 -3
- package/lib/types/buffer.js +1 -1
- package/lib/virtualtype.js +1 -1
- package/package.json +12 -10
- package/types/aggregate.d.ts +4 -67
- package/types/connection.d.ts +4 -4
- package/types/error.d.ts +5 -0
- package/types/expressions.d.ts +154 -153
- package/types/index.d.ts +3 -3
- package/types/models.d.ts +3 -3
- package/types/mongooseoptions.d.ts +1 -1
- package/types/pipelinestage.d.ts +39 -35
- package/types/query.d.ts +10 -10
- package/types/schematypes.d.ts +1 -1
- package/types/session.d.ts +4 -4
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Mongoose 6.0.0 was released on August 24, 2021. You can find more details on [ba
|
|
|
21
21
|
- [Bug Reports](https://github.com/Automattic/mongoose/issues/)
|
|
22
22
|
- [Mongoose Slack Channel](http://slack.mongoosejs.io/)
|
|
23
23
|
- [Help Forum](http://groups.google.com/group/mongoose-orm)
|
|
24
|
-
- [MongoDB Support](https://
|
|
24
|
+
- [MongoDB Support](https://www.mongodb.com/docs/manual/support/)
|
|
25
25
|
|
|
26
26
|
## Plugins
|
|
27
27
|
|
|
@@ -96,7 +96,7 @@ await mongoose.connect('mongodb://127.0.0.1/my_database');
|
|
|
96
96
|
|
|
97
97
|
Once connected, the `open` event is fired on the `Connection` instance. If you're using `mongoose.connect`, the `Connection` is `mongoose.connection`. Otherwise, `mongoose.createConnection` return value is a `Connection`.
|
|
98
98
|
|
|
99
|
-
**Note:** _If the local connection fails then try using 127.0.0.1 instead of
|
|
99
|
+
**Note:** _If the local connection fails then try using 127.0.0.1 instead of localhost. Sometimes issues may arise when the local hostname has been changed._
|
|
100
100
|
|
|
101
101
|
**Important!** Mongoose buffers all the commands until it's connected to the database. This means that you don't have to wait until it connects to MongoDB in order to define models, run queries, etc.
|
|
102
102
|
|