title: How do I write an aggregate using mongoose feathers adapter?
body: <p>I'm new to feathersjs framework and try to write aggregation query it's not working properly.</p>
  
  <pre><code>hook.app.query = { 
     lookup: {
        from: "orders",
        localField:"serviceLocationId",
        foreignField:"serviceLocationId",
        as: "orders" 
     },
     match: { serviceLocationId : { $in: Array.from(new Set(reqArr)) } },
     limit: 14 
  }
  
  hook.app.service('servicelocations')
      .find(hook.app.query)
      .then(result =&gt; {
          console.log(result)
      })
  </code></pre>