title: how to do pagination using mirage fake data in emberjs?
body: <p>I am using mirage for creating fake data.</p>
  
  <p><strong>scenario/default.js</strong></p>
  
  <pre><code>export default function(server) {
    server.createList('product', 48);
    server.loadFixtures();
  }
  </code></pre>
  
  <p>Above I am creating 48 products and from controller I am calling</p>
  
  <pre><code>this.store.query('product', {
                  filter: {
                      limit: 10,
                      offset: 0
                  }
              }).then((result) =&gt; {
                  console.log(result);
              });
  </code></pre>
  
  <p>and in <strong>mirage/config.js</strong></p>
  
  <pre><code>this.get('/products', function(db) {
      let products = db.products;
      return {
        data: products.map(attrs =&gt; ({
          type: 'product',
          id: attrs.id,
          attributes: attrs
        }))
      };
    });
  </code></pre>
  
  <p>now my question is, how to load 10 products per page? I am sending in filter 10 as page size and offset means page number.</p>
  
  <p>what changes should be done to config.js to load only limited products?</p>