Skip to content

Commit

Permalink
Merge pull request #11697 from shyakadev/master
Browse files Browse the repository at this point in the history
docs: add code snippets for Refs to children
  • Loading branch information
Uzlopak authored Apr 21, 2022
2 parents 41068fa + 8aa35a7 commit f31780f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/populate.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ But, if you have a good reason to want an array of child pointers, you
can `push()` documents onto the array as shown below.

```javascript
story1.save()

author.stories.push(story1);
author.save(callback);
```
Expand Down

0 comments on commit f31780f

Please sign in to comment.