Hello All,
I currently have the below graphQL query which extracts all items in board.
Please note in the below example that the board id is not a real board. The cursor is also not a real cursor.
{
boards(ids: 123456789) {
items_page (limit: 500, cursor: "fhakahdfyiewhalfhdsanhdfsfwefewwfeM" ) {
cursor
items {
name
column_values {
column {
title
}
text
}
}
}
}
}
I have about 700 items in the board. The items_page has a maximum limit of returning 500 items.
I previously used the above query to return all the remaining items (after the 1st 500).
However today, we encountered the below message
"error_code": "CursorException",
"status_code": 200,
"error_message": "CursorExpiredError: The cursor provided for pagination has expired. Please refresh your query and obtain a new cursor to continue fetching items",
"error_data": {}
}
For our specific use case, we are not looking to refresh the cursor every 60 minutes. I am wondering if it’s possible to have a cursor that would not expire or somehow increase the query limit from like 500 to 1,000.
If that’s not possible, is there an alternate GraphQL that we can use to reliably grab all the items in the boards. Without having to worry about expiring cursor?
e.g. maybe something like page where 1st page gets 500 and 2nd page gets remaining items
Thanks,
Chris