gr2m / gr2m/github-api-wishlist
GraphQL: Create a generic query node type for pagination
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 7
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
The issue includes GraphQL examples for a generic paginated node but names no repository files, tests, or entry points. Start by determining how this wishlist records API proposals and whether implementation work exists here; done would require a defined generic pagination design and an accepted path forward.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- graphql
- Bereich
- api, backend-api-design
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100