KnpLabs / KnpLabs/php-github-api

Github\ResultPager doesn't support GraphQL

Đang mở
#1,153 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
2.2k
Fork
587
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
graphql, php
Lĩnh vực
api
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.