KnpLabs / KnpLabs/php-github-api
Github\ResultPager doesn't support GraphQL
- Lingua principale
- PHP
- Stelle
- 2.2k
- Fork
- 587
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
This type of thing could/should work too.
```php
$response = $pager->fetchAll($this->client->graphql(), 'execute', [
'query' => 'query ($login: String!, $perPage: Int!) {
user(login: $login) {
repositories(first: $perPage, orderBy: {field: UPDATED_AT, direction: DESC}) {
nodes {
id
}
pageInfo {
hasNextPage
endCursor
}
}
}
}',
'variables' => [
'login' => 'torvalds',
'perPage' => 10,
],
]);
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start at the Github\ResultPager entry point and trace the fetchAll call shown with client->graphql() and execute. Done means the pager supports the supplied GraphQL query and follows its pageInfo and endCursor values to retrieve all repository pages.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- graphql, php
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100