const users = await User
.find()
.populate([
{ path: 'aId', model: 'A', as: 'a' }, // parallel
{ path: 'bId', model: 'B', as: 'b' } // parallel
])
.populate({ path: 'a.author', select: { name: 1, avatar: 1 }, model: 'User' }) // series
-
Notifications
You must be signed in to change notification settings - Fork 0
[mongolass](https://github.com/mongolass/mongolass) `.populate` plugin
nswbmw/mongolass-plugin-populate
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
[mongolass](https://github.com/mongolass/mongolass) `.populate` plugin
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published