populate selected fields mongoose 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'
})