gr2m / gr2m/github-api-wishlist
GraphQL: Create a generic query node type for pagination
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 7
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
GitHub's current GraphQL API supports a generic `query.resource` type:
```js
query {
resource(url:"https://github.com/gr2m/sandbox") {
... on Repository {
nameWithOwner
}
}
}
```
It would be great to have a generic node type that would allow for pagination.
```js
query($cursor: String) {
paginate(first: 100, after: $cursor) {
pageInfo {
endCursor
hasNextPage
}
nodes {
... on Repository {
nameWithOwner
}
}
}
}
```
That would greatly simplify to paginate complex queries with multiple, nested paginations
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.