title: How to retrieve an array from within a document that matches a certain ID?
body: <p>I am building an application in Meteor, and I want to retrieve the array of images from a Mongo collection where testKey = 1. The result being that I would have a Javascript variable that holds an array that looks like:</p>
  
  <p><code>["filepath-here", "filepath2-here",...}</code></p>
  
  <p>Example Mongo collection:</p>
  
  <pre><code>{
    "testKey": 1,
    "images": [
      "filepath-here",
      "filepath2-here",
    ]
  }
  </code></pre>
  
  <p>I have tried this:</p>
  
  <pre><code>var testImgCount = Tests.find( { testKey : randomTest }, { fields: { 'images': 1, '_id':0 }}).fetch();
  </code></pre>
  
  <p>When I console.log it returns [Object], and when I open that up it shows </p>
  
  <p><code>[0: object, length: 1, _proto_: Array[0]</code></p>
  
  <p><code>0: object</code> in this instance holds the array that I am trying to get access to. How can I go about this to only return this value?</p>