Skip to content

Commit 626762a

Browse files
committed
docs: link to MongoDB Node driver 6.0 GitHub release rather than changelog entry in migration guide
1 parent 12c5892 commit 626762a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/migrating_to_8.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
}
77
</style>
88

9-
There are several backwards-breaking changes
10-
you should be aware of when migrating from Mongoose 7.x to Mongoose 8.x.
9+
There are several backwards-breaking changes you should be aware of when migrating from Mongoose 7.x to Mongoose 8.x.
1110

1211
If you're still on Mongoose 6.x or earlier, please read the [Mongoose 6.x to 7.x migration guide](migrating_to_7.html) and upgrade to Mongoose 7.x first before upgrading to Mongoose 8.
1312

13+
We also recommend reviewing the [MongoDB Node.js driver's release notes for v6.0.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.0.0) before upgrading to Mongoose 8.
14+
1415
* [Removed `rawResult` option for `findOneAndUpdate()`](#removed-rawresult-option-for-findoneandupdate)
1516
* [`Document.prototype.deleteOne()` now returns a query](#document-prototype-deleteone-now-returns-a-query)
1617
* [MongoDB Node Driver 6.0](#mongodb-node-driver-6)
@@ -65,7 +66,7 @@ const res = await q;
6566

6667
<h2 id="mongodb-node-driver-6"><a href="#mongodb-node-driver-6">MongoDB Node Driver 6</a></h2>
6768

68-
Mongoose 8 uses [v6.x of the MongoDB Node driver](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md#600-2023-08-28).
69+
Mongoose 8 uses [v6.x of the MongoDB Node driver](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.0.0).
6970
There's a few noteable changes in MongoDB Node driver v6 that affect Mongoose:
7071

7172
1. The `ObjectId` constructor no longer accepts strings of length 12. In Mongoose 7, `new mongoose.Types.ObjectId('12charstring')` was perfectly valid. In Mongoose 8, `new mongoose.Types.ObjectId('12charstring')` throws an error.

0 commit comments

Comments
 (0)