Mongoose document: Access a field that doesn't exist in the Schema #15264
Unanswered
fraction01
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to access a field that doesn't exist in the schema, when I
console.log
the document I can see the field, also If I usedocument.get('myField')
even without{ strict: false }
, but If I access usingdocument.myField
I getundefined
which I find strangeBeta Was this translation helpful? Give feedback.
All reactions