Skip to content

Commit 6da0c52

Browse files
authored
Merge pull request #5927 from abagh0703/patch-1
Grammar change: it's --> its
2 parents f59defb + a159115 commit 6da0c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/2.7.x/docs/populate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ <h1>Populate - DBRef-like behavior</h1>
230230
var Person = mongoose.model('Person', PersonSchema);
231231
</code></pre>
232232

233-
<p>So far we've created two models. Our <code>Person</code> model has it's <code>stories</code> field set to an array of <code>ObjectId</code>s. The <code>ref</code> option is what tells Mongoose in which model to look, in our case the <code>Story</code> model. All <code>_id</code>s we store here must be document <code>_id</code>s from the <code>Story</code> model. We also added a <code>_creator</code> <code>ObjectId</code> to our <code>Story</code> schema which refers to a single <code>Person</code>.</p>
233+
<p>So far we've created two models. Our <code>Person</code> model has its <code>stories</code> field set to an array of <code>ObjectId</code>s. The <code>ref</code> option is what tells Mongoose in which model to look, in our case the <code>Story</code> model. All <code>_id</code>s we store here must be document <code>_id</code>s from the <code>Story</code> model. We also added a <code>_creator</code> <code>ObjectId</code> to our <code>Story</code> schema which refers to a single <code>Person</code>.</p>
234234

235235
<h2>Saving a ref (to the parent)</h2>
236236

0 commit comments

Comments
 (0)