go-gh
go-gh copied to clipboard
Allow RESTClient and GQLClient to support automatic pagination
Pagination is currently not possible using RESTClient and takes lots of manual work using GQLClient. We should support this feature for both. Initial implementation idea is to add a pagination options to ClientOptions which would enable this for both clients and be a noop for the HTTPClient.
Similar to cli/cli#1268. Perhaps there's a common solution for both. What @mislav suggested is a good idea. I would think with REST an array could simply be amended with subsequent elements. GraphQL might be more tricky.