Skip to content

Commit 5bc09d0

Browse files
authored
Merge pull request #14973 from rb-ntnx/patch-1
docs(migration-guide-v7): correct link to the section "Id Setter"
2 parents c342fc4 + aa0d561 commit 5bc09d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/migrating_to_7.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ In Mongoose 7, `ObjectId` is now a [JavaScript class](https://masteringjs.io/tut
200200
const oid = new mongoose.Types.ObjectId('0'.repeat(24));
201201
```
202202

203-
## `id` Setter
203+
## `id` Setter {#id-setter}
204204

205205
Starting in Mongoose 7.4, Mongoose's built-in `id` virtual (which stores the document's `_id` as a string) has a setter which allows modifying the document's `_id` property via `id`.
206206

0 commit comments

Comments
 (0)