title: How to Query a Model based on its Relation in Strapi
body: <p>Hope you are all having a nice day!  :)
  I have tried to google my question but never can get a working example.</p>
  <p>I have a model for <em>Projects</em>.  <em>Projects</em> has a <em>1:n</em> relationship with the model <em>Members</em>.
  If I use:</p>
  <pre><code>strapi.query('project').find({id: 1});
  </code></pre>
  <p>I get:</p>
  <pre><code>{ id: 1, name: 'Project 1', members: [...]}
  </code></pre>
  <p>So basically I am able to find a <em>Project</em> by its <em>ID</em> and I get a list of its <em>Members</em>.</p>
  <p>BUT how would I go about getting a list of all members that belong to Project with ID = 1?</p>
  <pre><code>strapi.query('member').find(...);
  strapi.query('member').search(...);
  </code></pre>
  <p>The closest I got was using:</p>
  <pre><code>strapi.query('member').search({_q: 'Project Name'});
  </code></pre>
  <p>This is however not close enough.  It is more of a work around.  I would really like to be able to do this in a clean way by using the IDs of the <em>Project</em>.   Can anyone help or point me in the right direction?  Any examples are greatly appreciated!   Thank you!  :)</p>