title: orchestrate.io with nodejs get all records
body: <p>I'm using nodejs and Orcestrate db. I would like to get all the records from a collection though i have much more than the limit. i found this :</p>
  
  <pre><code>db.list('address-book', {limit:10})
  .then(function (page1) {
    // Got First Page
    if (page1.links &amp;&amp; page1.links.next) {
      page1.links.next.get().then(function (page2) {
        // Got Second Page
      })
    }
  })
  .fail(function (err) {
  })
  </code></pre>
  
  <p>But it wont help me because i don't really know how many pages i will have.
  I'm getting confused with the recursive and nested callbacks.</p>
  
  <p>Thanks!</p>