title: Create Query in before hook in feathers js for nested object
body: <p>how can i create a query in before hook that will match nested object and return desired result ? I have objects like following in rethinkdb and I want to use something like <code>hook.params.query = {paymentAccounting : {Contact : {Name : 'XYZ'}}}</code> in the before find hook . It seems working for a straight forward object but what about nested object?How to match  paymentAccounting >Contact > Name ?</p>
  
  <pre><code>{
  "id": "5f45451a-653a-4dc7-b135-25dec3aa25b5",
  "paymentAccounting": {
      "Account": {
          "value": "4"
      },
      "Amount": 50,
      "Contact": {
          "ContactID": "68",
          "Name": "XYZ"
      },
      "Invoice": {
          "Date": "2018-01-05",
          "InvoiceID": "230"
      },
      "PaymentID": "237"
   }
  }
  </code></pre>