f 10. So far, so good. But how do you know how many pages of data you have? Your server would need to return the total number of records as a piece of metadata.</p>
<p>Each serializer will expect the metadata to be returned differently. For example, Ember Data's JSON deserializer looks for a <code>meta</code> key:</p>
<pre class="language-javascript line-numbers"><code class="javascript language-javascript"><span class="token punctuation">{</span>
  <span class="token string-property property">"post"</span>