-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.9 #15083
Conversation
…opulating already populated docs Fix #14979
Co-authored-by: hasezoey <[email protected]>
…th MongoDB server 8.0 Fix #15028
…s `unique: true` Fix #12844
feat: add forceRepopulate option for populate() to allow avoiding repopulating already populated docs
feat(connection): add support for Connection.prototype.bulkWrite() with MongoDB server 8.0
Co-authored-by: hasezoey <[email protected]>
Co-authored-by: hasezoey <[email protected]>
feat: allow specifying error message override for duplicate key errors `unique: true`
feat(NODE-6503): Add Int32 to SchemaType
feat(NODE-6504): Add Double as a SchemaType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bson dependency needs to be updated, otherwise mismatched types are returned in typegoose (but somehow not in mongoose's tests itself).
Example:
expect(received).toBeInstanceOf(expected)
Expected constructor: ObjectId
Received constructor: ObjectId
422 |
423 | found.mapped.forEach((v) => {
> 424 | expect(v).toBeInstanceOf(mongoose.Types.ObjectId);
| ^
425 | });
426 |
427 | await found.populate('mapped.$*');
Co-authored-by: hasezoey <[email protected]>
@hasezoey good catch. I updated to new MongoDB Node driver version 6.12, and bumped bson to ^6.10.1 to match. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the update looks good (re-tested, and works without errors or changes needed)
Summary
Uses MongoDB node driver 6.11, adds support for int32 and double as built-in types (thanks @aditi-khare-mongoDB and team), Connection-level bulk write, and some other smaller new features.
Examples