KnpLabs / KnpLabs/php-github-api
Github\ResultPager doesn't support GraphQL
- Langage dominant
- PHP
- Étoiles
- 2.2k
- Forks
- 587
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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,
],
]);
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- graphql, php
- Domaine
- api
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100