Pagination with Graph QL API queries

I am trying to extract data from monday.com from Qlik.I am struggling with pagination.So,Monday.com is Graphql based platform and Graphql supports cursor based pagination.Do Monday.com supports cursorbased pagenation??
For eg :below Query works.
{
boards(limit:10,page:1) {
columns {
id
}
}
}

When I try to add fields for cursorbased pagination,it shows below error message-
“message”: “Field ‘pageInfo’ doesn’t exist on type ‘Board’”
Query used is as follows-
{
boards(limit:10,page:1) {
pageInfo{hasNextPage totalCount}
columns {
id
}
}
}
Kindly help with the pagenation.

1 Like

Hello @AditeeR!

Our pagination will only take page and limitas arguments.

Other arguments like hasNextPage or totalCount are not accepted.

You will have to paginate until the response you get is empty (or until the amount of records retrieved is smaller than the limit, which should give you a hint that you reached the last page).

Hope that helps :slightly_smiling_face:

Cheers,
Matias

1 Like

Hi Matias,
Same issue with AditeeR.
Will Monday API support totalCount in the future?
I really want to build a pagination that has the total page number.
Thanks.

2 Likes

Yeah I support this request. I faced a similar issue today and was wondering if it would be possible for Monday to provide a solution for retrieving the total number of items. This feature is crucial for the functionality of my app, which heavily relies on lazy loading.

1 Like

Hello there,

I do not have any ETAs on when or if this could be implemented.

Having said that, I will add your votes for this request :slightly_smiling_face:

If it gets implemented in the future, we will announce it in our changelog.

Cheers,
Matias

1 Like