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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to access a field that doesn't exist in the schema, when I
console.logthe document I can see the field, also If I usedocument.get('myField')even without{ strict: false }, but If I access usingdocument.myFieldI getundefinedwhich I find strangeBeta Was this translation helpful? Give feedback.
All reactions