title: How to Read Query Filters from Within a LoopBack Model
body: <p>We're using LoopBack for our REST APIs and need to access the query filter (that was specified in the client) from within custom logic in the LoopBack model. For example, given this query:</p>
  
  <pre><code>http://localhost:1337/api/Menus/formatted?filter[where][id]=42
  </code></pre>
  
  <p>how would we access the 'where' parameter from within the 'Menu.formatted' code:</p>
  
  <pre><code>function asMenu(Menu) {
      Menu.formatted = function (callback) {
  
          &lt;&lt;Need to access the query filter here...&gt;&gt;
  </code></pre>