title: How to use axios to get all response data when there are multiple pages?
body: <p>I have a URL like <code>https://abc123/api/records</code> that gives me:</p>
  
  <pre><code>{"page":1,"per_page":10,"total":99,"total_pages":10,"data":[object1, object2, object3,...]}
  </code></pre>
  
  <pre><code>axios.get("https://abc123.com/api/records?&amp;page=2")
    .then(response =&gt; console.log(response.data))
  </code></pre>
  
  <p>Will then give me something like </p>
  
  <pre><code>{"page":2,"per_page":10,"total":99,"total_pages":10,"data":[object1, object2, object3,...]}
  </code></pre>
  
  <p>I want to access all the objects in "data" from all 10 pages. How would I do that using nodeJS and axios?</p>