Skip to content

Commit e5cb559

Browse files
authored
Update populate.md
Fix Populating Maps example
1 parent 5846eee commit e5cb559

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)