title: loopback.io multiple includes
body: <p>I have a loopback.io API with a MongoDB database. 
  I have a model called <strong>Project</strong> with 2 hasMany relationships</p>
  
  <ul>
  <li><strong>Project</strong> has many <strong>ProjectArticle</strong> objects</li>
  <li><strong>Project</strong> has many <strong>ProjectWorkHours</strong> objects</li>
  </ul>
  
  <p>When I run I do a request: <a href="http://0.0.0.0:3000/api/Projects?filter[include][projectArticles]" rel="nofollow">http://0.0.0.0:3000/api/Projects?filter[include][projectArticles]</a></p>
  
  <p>I get the following response, which is good</p>
  
  <pre><code>{
      "title": "Project 1",
      "description": "My project number one",
      "dateCreated": "2015-10-31T00:00:00.000Z",
      "id": "5634b3af340faf570c7e70a8",
      "projectArticles": [
        {
          "articleName": "brick",
          "quantity": 5,
          "unitPrice": 2,
          "id": "5634b9ea5ab833960c8fbf6d",
          "projectId": "5634b3af340faf570c7e70a8"
        }
      ]
    }
  </code></pre>
  
  <p>and when I do: <a href="http://0.0.0.0:3000/api/Projects?filter[include][workHours]" rel="nofollow">http://0.0.0.0:3000/api/Projects?filter[include][workHours]</a> I get the right answer:</p>
  
  <pre><code>{
      "title": "Project 1",
      "description": "My project number one",
      "dateCreated": "2015-10-31T00:00:00.000Z",
      "id": "5634b3af340faf570c7e70a8",
      "workHours": [
        {
          "description": "blabla",
          "startDate": "2015-10-31T00:00:00.000Z",
          "endDate": "2015-10-31T00:00:00.000Z",
          "id": "5634e11d5f6471f10d2e0dd7",
          "workHourId": "5634b3af340faf570c7e70a8"
        },
        {
          "description": "blabla 2",
          "startDate": "2015-10-31T00:00:00.000Z",
          "endDate": "2015-10-31T00:00:00.000Z",
          "id": "5634e1265f6471f10d2e0dd8",
          "workHourId": "5634b3af340faf570c7e70a8"
        }
      ]
    }
  </code></pre>
  
  <p>but how do i combine the two includes in one request? so I have the following result:</p>
  
  <pre><code>{
      "title": "Project 1",
      "description": "My project number one",
      "dateCreated": "2015-10-31T00:00:00.000Z",
      "id": "5634b3af340faf570c7e70a8",
      "workHours": [
        {
          "description": "blabla",
          "startDate": "2015-10-31T00:00:00.000Z",
          "endDate": "2015-10-31T00:00:00.000Z",
          "id": "5634e11d5f6471f10d2e0dd7",
          "workHourId": "5634b3af340faf570c7e70a8"
        },
        {
          "description": "blabla 2",
          "startDate": "2015-10-31T00:00:00.000Z",
          "endDate": "2015-10-31T00:00:00.000Z",
          "id": "5634e1265f6471f10d2e0dd8",
          "workHourId": "5634b3af340faf570c7e70a8"
        }
      ],
      "projectArticles": [
        {
          "articleName": "brick",
          "quantity": 5,
          "unitPrice": 2,
          "id": "5634b9ea5ab833960c8fbf6d",
          "projectId": "5634b3af340faf570c7e70a8"
        }
      ]
    }
  </code></pre>
  
  <p>I tried this: <a href="http://0.0.0.0:3000/api/Projects?filter[include][workHours]&amp;[include][projectArticles]" rel="nofollow">http://0.0.0.0:3000/api/Projects?filter[include][workHours]&amp;[include][projectArticles]</a> but it only applies the first one and the second filter is kind of ignored</p>
  
  <p>any ideas?</p>