title: How to apply filter in loopback while including another model via "hasMany" relation?
body: <p>I am using loopback 3. I have two models project and project members.
  Project has "hasMany" relation with project members. </p>
  
  <p>So far, I use <a href="http://localhost:3000/api/v1/Projectsfilter[include]=projectMember" rel="nofollow noreferrer">http://localhost:3000/api/v1/Projectsfilter[include]=projectMember</a> which gives me result like below :-</p>
  
  <pre><code>{
  "projectName": "project 1 ",
  "clientNames": {},
  "projectShortCode": "string", 
  "projectMember": [
  {
     "projectId": 1,
     "userId": 1,
     "id": 1
  },
  "projectName": "project 2",
  "clientNames": {},
  "projectShortCode": "string", 
  "projectMember": [
  {
     "projectId": 1,
     "userId": 2,
     "id": 2
  }
  }
  </code></pre>
  
  <p>How do I apply filter on api that I get only those project in result which has userId = 1 ?</p>