It’s in python, all async/await, no threads. Yes, I’m using next_items_page. First query queries a board_id with info about groups, columns and 500 items via items_page:
boards (ids:[{boards}] ) {{
name
id
columns{{
id
title
type
}}
groups {{
id
title
}}
items_page (limit: {limit}){{
cursor
items {{
id
}}
}}
}}
Then subsequence requests are spawned off via next_items_page:
next_items_page (limit:{limit}, cursor: "{cursor}") {{
cursor
items {{
id
}}
}}
Meanwhile, the item ids retrieved in items_page from the first request, and the next_items_page requests get fed into queries directly to the items endpoint:
items (ids:[{items}], limit:{limit}) {{
id
name
group {{ id }}
column_values {{
id
text
value
}}
}}
Ignore the double curly braces, these are the string templates I made for my queries in python, they are needed to escape the braces since python uses braces for template variables.