title: Loopback getting only one Object from property Array of Object
body: <p>I'm use loopback and mongodb. Right now I have a Model and one of its property type is array of object. The document in mongo will look like this</p>
  
  <pre><code>{
      "_id" : "sgG6G9XTvvjj7uxwQ",
      "name" : "test",
      subscription: [
          {
               "id":3324,
               "state":"Currently",
               "type": "A",
               "startDate": "Date"
  
          },
          {
               "id":5465,
               "state":"Futuristic",
               "type": "A",
               "startDate": "Date"
          },
          {
               "id":6575,
               "state":"Futuristic",
               "type": "A",
               "startDate": "Date"
          }
      ]
  }
  </code></pre>
  
  <p>I have already tried</p>
  
  <pre class="lang-js prettyprint-override"><code> await this.clientsRepository.find({ where: { _id:'5d07ee4515741e0fbcfdbad1',
  'subscription.state': 'Currently' },fields: { 'subscription.$': true } } })
  </code></pre>
  
  <p>I do expect only one object like this</p>
  
  <pre><code>{
     "id":3324,
      "state":"Currently",
      "type": "A",
      "startDate": "Date"
  }
  </code></pre>