After a few tests, I noticed a strange behaviour. In every try I tested a paginated items_page_by_column_values query, I get the error “The provided cursor does not correspond to the given board_id. Please ensure you are using a cursor that matches the correct board_id”.
I’m absolutely sure I’m using the same board id, since that’s a constant in my code, and I’m removing “columns” when I write the query with a cursor. Also made sure no other value was leaking to cursor - not even sure how that could happen on my side, to be honest. Example code below, with values substituted.
Can someone help me figure what’s going on here?
First query
'{
items_page_by_column_values(board_id: board_id, limit: 100, columns: [{column_id: "column_id", column_values: ["column_value"]}]) {
cursor
items {
id
name
column_values {
id
value
text
}
assets {
public_url
name
}
}
}
}'
Second code, using cursor
'{
items_page_by_column_values(board_id: board_id, limit: 100, cursor: "random_cursor") {
cursor
items {
id
name
column_values {
id
value
text
}
assets {
public_url
name
}
}
}
}'