mongoose populate array of objects 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'
})