Below, you can see the output from these two logs. The first clearly shows the full object with the property I\'m trying to access, but on the very next line of code, I can\
For me it turned out to be a Mongoose-related problem.
I was looping over objects that I got from a Mongo query. I just had to remove:
items = await Model.find()
And replace it by:
items = await Model.find().lean()