Hi there,
consider the query of the pagination example in your README.
How about providing a second function that, instead of returning the query as is, would deep-query the result and follow any pageInfo object until HasNextPage is false? The new results can just be appended to the existing one so the return type of the 2 functions wouldn't differ.
The API for it could be
err = ghClient.DeepQuery(ctx, &query, nil)
Do you see anything blocking this? We will need to implement this in the future for our specific use case anyway, might as well make it general and provide a PR here.
Kind regards
Hi there,
consider the query of the pagination example in your README.
How about providing a second function that, instead of returning the query as is, would deep-query the result and follow any
pageInfoobject untilHasNextPageis false? The new results can just be appended to the existing one so the return type of the 2 functions wouldn't differ.The API for it could be
Do you see anything blocking this? We will need to implement this in the future for our specific use case anyway, might as well make it general and provide a PR here.
Kind regards