[FEAT]: Better error message for pageInfo inside an array #238
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Feature
New feature or request
Describe the need
If you run:
you'll get the error:
This is confusing because there clearly is a
pageInfo
property sitting there, and there's only one item to page through. The fix is to use thenode
query instead of thenodes
query to get rid of the 1-element array, and the error message could say that.Or the code could notice that there's exactly one
pageInfo
object and optimistically page through that even though it's surrounded by an array.SDK Version
@octokit/plugin-paginate-graphql 5.2.2
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: