Need help for pagination feature

    Written at 19 June 2023, 17:00 (UTC+7) Asia/Jakarta

    Published at 20 June 2023, 00:00 (UTC+7) Asia/Jakarta

    As you might aware of, naufalHaidar12342 don't have pagination feature yet (the option to choose page that have several posts). And I need your help.

    Example of pagination.

    The challenge of implementing pagination.

    Since this blog using Hygraph, the request are formatted in graphQL, so the HTTP response is a bit different than your average API. I tried following the tutorial from Hygraph, but turns out it didn't work for my case.
    Oh, and the posts section is rendered during build time. I think that also affect how the pagination going to be implemented.

    Ever configuring pagination on Next.js with data from Hygraph?

    If so, I would like to hear it how you configure it in the comment section below. Or, if you have some article as reference, please leave the link below.