mongoose populate from inside an array code example
Example: populate mongoose array select
User.findById(id).populate({
path: 'contacts.user',
select: 'email'
})
User.findById(id).populate({
path: 'contacts.user',
select: 'email'
})