title: loopback where filter on date's year
body: <p>I am not sure if database functions are supported thru REST API requests or if I am doing something wrong. I am using mysql db connector.</p>
  
  <p>I have tried using simple where filter with both equality and gte operators. </p>
  
  <pre><code>{"where":{"YEAR(StartDate)":2018}}
  
  or 
  
  {"where":{"and":[{"YEAR(StartDate)":{"gte":2018}},{"year(StartDate)":{"lte":2020}}]}}
  </code></pre>
  
  <p>I don't get any error and the filter condition is silently ignored returning all records from the table.</p>