KnpLabs / KnpLabs/php-github-api

Github\ResultPager doesn't support GraphQL

オープン
#1,153 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2.2k
フォーク
587
PR マージ指標
30日以内にマージされた PR はありません

説明

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,
],
]);
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql, php
領域
api
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。