You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There’s a section in the docs about nested pagination being unsupported and I think you would consider this query to have nested pagination but it’s slightly different from the example provided because it only has one layer of pagination, it’s just that the pagination is nested. I guess I’m not totally sure what the docs specifically mean by “nested”.
For what it’s worth, when I run this query I get:
/Users/williammartin/workspace/octokit-playground/node_modules/@octokit/plugin-paginate-graphql/dist-node/index.js:68
throw new MissingPageInfo(responseData);
^
MissingPageInfo: No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: {
"nodes": [
{
"nameWithOwner": "samcoe/gh-triage",
"defaultBranchRef": {
"target": {
"history": {
"totalCount": 7,
"nodes": [
{
"oid": "d17b7ae2bdf9d3826ccea2b583fd850339821be4"
},
{
"oid": "f7399a6f0bcad0f28ff09ae3af60a03ac14f629d"
},
{
"oid": "8645e1e0199b306d1ed1587c01b75580f57fe170"
},
{
"oid": "003d962ebb25229d570367194bdad3d6f3296c60"
},
{
"oid": "a7c2afb0404dd0b478974998bf07e293cd73c08b"
}
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "d17b7ae2bdf9d3826ccea2b583fd850339821be4 4"
}
}
}
}
}
]
}
at findPaginatedResourcePath (/Users/williammartin/workspace/octokit-playground/node_modules/@octokit/plugin-paginate-graphql/dist-node/index.js:68:11)
at extractPageInfos (/Users/williammartin/workspace/octokit-playground/node_modules/@octokit/plugin-paginate-graphql/dist-node/index.js:108:24)
at Object.next (/Users/williammartin/workspace/octokit-playground/node_modules/@octokit/plugin-paginate-graphql/dist-node/index.js:139:35)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Function.paginate (/Users/williammartin/workspace/octokit-playground/node_modules/@octokit/plugin-paginate-graphql/dist-node/index.js:189:22) {
response: {
nodes: [
{
nameWithOwner: 'samcoe/gh-triage',
defaultBranchRef: { target: { history: [Object] } }
}
]
}
}
But because I’m already on shaky ground with js and not sure from the previous question if I’m using it correctly I’m not sure if I’m “holding it wrong”.
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
It's been pointed out to me that the query I provided wouldn't make much sense given that a single cursor would be shared between multiple repositories. However, I'm not sure if that is resolvable right now due to #169
What would be expected to happen in the case of a query like:
There’s a section in the docs about nested pagination being unsupported and I think you would consider this query to have nested pagination but it’s slightly different from the example provided because it only has one layer of pagination, it’s just that the pagination is nested. I guess I’m not totally sure what the docs specifically mean by “nested”.
For what it’s worth, when I run this query I get:
But because I’m already on shaky ground with js and not sure from the previous question if I’m using it correctly I’m not sure if I’m “holding it wrong”.
Adding the real API responses I get from the API as a test to the merge responses functionality shows the same thing.
The text was updated successfully, but these errors were encountered: