how to populate and not type objectid in mongoose code example
Example 1: mongoose create populate response
let user = await User.create({ ... })
user = await user.populate('company').execPopulate()
Example 2: mongodb populate document
Story.
findOne({ title: 'Casino Royale' }).
populate('author').
exec(function (err, story) {
if (err) return handleError(err);
console.log('The author is %s', story.author.name);
// prints "The author is Ian Fleming"
});