title: optimizing usage of bookshelf with graphql-bookshelf
body: <p>I have created a small example where the model is like the following</p>
  
  <pre><code>Student --- hasMany ---&gt; Homework --- hasMany -----&gt; Page
  </code></pre>
  
  <p>Now, when I load the following (note: viewer is the student) the there is one query for the student, one for the homework, but multiple for the pages. There are as many queries as there are pages. How can i optimize it so that there is only one query for the all the pages.</p>
  
  <p>Best case scenario would be to load the whole thing at once, but i'd be happy for any pointers on how to optimize this.</p>
  
  <pre><code>{ 
   viewer(id: 3) {
      name
      homeworks{
        subject
        pages{
          content
        }
      }
    }
  }
  </code></pre>
  
  <p>The code I've used to test this is available at <a href="https://gist.github.com/hardfire/3ff69d3a602bf3c30dcbbca71d67d605" rel="nofollow noreferrer">https://gist.github.com/hardfire/3ff69d3a602bf3c30dcbbca71d67d605</a></p>