GitHubOpenPullRequestsQuery

Fetch the first ten open pull requests for a GitHub repository, sorted by when they were opened.

query GitHubOpenPullRequestsQuery { gitHub { repository(name: "graphql-js", owner: "graphql") { pullRequests( orderBy: {direction: DESC, field: CREATED_AT} first: 10 states: OPEN ) { nodes { title } } } } }
Types used in this example
Query

No description

GitHubQuery

The query root of GitHub's GraphQL interface.

GitHubRepository

A repository contains the content for a project.

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

GitHubPullRequestConnection

The connection type for PullRequest.

GitHubIssueOrder

Ways in which lists of issues can be ordered upon return.

GitHubOrderDirection

No description

GitHubIssueOrderField

No description

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

GitHubPullRequest

A repository pull request.

____________________________________________________________________________________________________