Skip to content

Commit 0923e97

Browse files
authored
Merge pull request #12166 from amanfrinati/patch-1
Update populate.md
2 parents 5846eee + e5cb559 commit 0923e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/populate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ const librarySchema = new Schema({
801801
})
802802
}
803803
});
804-
const Library = mongoose.model('Library, librarySchema');
804+
const Library = mongoose.model('Library', librarySchema);
805805
```
806806

807807
You can `populate()` every book's author by populating `books.$*.author`:

0 commit comments

Comments
 (0)