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.

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