Hey all. From my understanding GraphQL requests should just return a maximum of 20 items. We did however see a work around with using the First Argument in a query. Example - we are returning 30 blog posts by specifying 30 as the number for the first argument.
Is this expected behavior? I ask because this is extremely useful for our use case but want to be sure this isn't something that might be removed at a later date.
Welcome to the Prismic community, and thanks for reaching out to us.
The expected behavior of graphql in Prismic returns max 20 documents at one time. For getting more than 20 documents, you need to apply pagination, which is described here
Are you getting 30 results without applying pagination?
Hi Priyanka! Yes we are able to get as many documents as we want if we pass in a number for the first argument. Like I mentioned this is extremely useful for our blog, will this remain as a feature or will it be restricted to 20 documents?
The GraphQL API doesn't retrieve more than 20 docs per page. But, as Priyanka mentioned, pagination will help you retrieve more than these initial 20 docs.
Could you show us an example of your query?