From c3b290c5af172a303c72950c375825a05c9f557b Mon Sep 17 00:00:00 2001 From: hasezoey Date: Sun, 5 Feb 2023 15:44:59 +0100 Subject: [PATCH] chore(subdocs.md): fix some broken links --- docs/subdocs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/subdocs.md b/docs/subdocs.md index 7cbe01dc174..99d3f334ae1 100644 --- a/docs/subdocs.md +++ b/docs/subdocs.md @@ -223,7 +223,7 @@ doc.child; // { age: 0 } ### Finding a Subdocument Each subdocument has an `_id` by default. Mongoose document arrays have a -special [id](api/types.html#types_documentarray_MongooseDocumentArray-id) method +special [id](api/mongoosedocumentarray.html#mongoosedocumentarray_MongooseDocumentArray-id) method for searching a document array to find a document with a given `_id`. ```javascript @@ -262,7 +262,7 @@ const newdoc = parent.children.create({ name: 'Aaron' }); ### Removing Subdocs Each subdocument has its own -[remove](api/types.html#types_embedded_EmbeddedDocument-remove) method. For +[remove](api/subdocument.html#subdocument_Subdocument-remove) method. For an array subdocument, this is equivalent to calling `.pull()` on the subdocument. For a single nested subdocument, `remove()` is equivalent to setting the subdocument to `null`.