I want to add new field to object.
var _u = await User.findOne({_id},{_id:0, name:1, username:1, group:1}).populate({
path: 'group',
select: '-_id title'
})
_u.type = 'user'
console.log(_u)
But hasn't got type field. Why I can't add new field? What should I do?