Meta property on Ghost Content Api disappers

When I was using Ghost Content API with Next.js, I am having issue getting pagination data from meta property. The way I can reproduce is the following:

  • Fetch the data with client library from getServerSideProps
  • try to get the meta property from that array via props
  • And you will not have access the meta property and only get the results in array.
    Also I have noticed that I have meta property only when it is server-side but on client side I can’t get the property anymore. I think its because when it serializes, the property disappears.

Here is a sandbox url to reproduce the issue

  • What version of Ghost are you using? 4.7