Skip to content

Commit

Permalink
chore(subdocs.md): fix some broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Feb 5, 2023
1 parent ef5ad37 commit c3b290c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/subdocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit c3b290c

Please sign in to comment.