title: Mongoose returning Array value as "undefined"
body: <p>About ready to frisbee my laptop into the drywall here.</p>
  <p>I have a Mongo document containing several different objects and arrays. The main ones of interest are the <code>categories</code> array of objects and the <code>bypass</code> array of Strings.</p>
  <p>I'm using <code>model.findOne()</code> to obtain the document with success. The value of the document is stored in the <code>res</code> variable and <code>console.log(res)</code> shows the correct values without errors. I can even SEE the contents of the <code>categories</code> and <code>bypass</code> elements.</p>
  <p>When I assign <code>res.categories</code> to a variable, no errors occur. Hooray, the basics of assignment are working.</p>
  <p>When I assign <code>res.bypass</code> to a variable (immediately after the above assignment), the variable value is <code>undefined</code> even though I can see the contents of <code>res.bypass</code> containing an Array of Strings as designed.</p>
  <p>The structure of <code>res.bypass</code> is <code>bypass: [ '123', '456', '78', '90' ]</code>. Assigning that value to a variable sets it as <code>undefined</code>.</p>
  <p>Am I missing something here? Am I not allowed to take a single document and assign its different elements to different variables?</p>
  <p>EDIT 1:</p>
  <p>Code Snippet Request:</p>
  <pre><code>await Api.findOne({ id: '1' }).then(async (doc) =&gt; {
  
      console.log(doc.categories) // Categories Array of Objects
      console.log(doc.bypass) // Bypass Array of Strings
  
      const categories = doc.categories // Value is categories Array of Objects
      const bypass = doc.bypass // Value is undefined
      ...
  })
  </code></pre>