Skip to content

Github\ResultPager doesn't support GraphQL #1153

@dkarlovi

Description

@dkarlovi

This type of thing could/should work too.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions