Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How can we get the count of total results in GraphQL

Avatar

Level 1

Hi,

I want to use GraphQL for searching and building a listing page with pagination. As I explored, I understand that GraphQL supports offset, limit, sorting etc. but I couldn't find a way to get the total number of results to achieve pagination with page number.

It would be really helpful if anyone can suggest how can we achieve it using GraphQL.

 

Thanks in advance.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 7

@RajeevKu consider below

GraphQL in AEM provides support for two types of pagination: