title: Place of definition of the autogenerated relation methods in Loopback 3.x
body: <p>I want to know where the autogenerated code is for the relation between two models in Loopback.</p>
  
  <p>I don't know where I can find this code.</p>
  
  <p>From the documentation of Loopback:</p>
  
  <blockquote>
    <p>For example, if a User hasMany projects, LoopBack creates these routes
    (among others) and the corresponding related model methods:</p>
  </blockquote>
  
  <pre><code>/api/users/count - standard method is count
  /api/users/:id/projects - related model method is __get__projects
  /api/users/:id/projects/count - related model method is __count__projects
  </code></pre>
  
  <p>I expect the folder of the original definition for that method.</p>