Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Created October 18, 2017 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThisIsMissEm/b598cb082a791d6628cba94ca92c4a1b to your computer and use it in GitHub Desktop.
Save ThisIsMissEm/b598cb082a791d6628cba94ca92c4a1b to your computer and use it in GitHub Desktop.
# Type queries into this side of the screen, and you will
# see intelligent typeaheads aware of the current GraphQL type schema,
# live syntax, and validation errors highlighted within the text.
# We'll get you started with a simple query showing your username!
query Test($owner: String!, $repo: String!, $baseRefName: String!, $cursor: String, $prCount: Int!) {
repository(owner: $owner, name: $repo) {
pullRequests(before: $cursor, last: $prCount, states: [MERGED], baseRefName: $baseRefName) {
totalCount,
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
edges {
cursor,
node {
baseRef {
id,
name
},
headRef {
id,
name
},
url,
title
labels (first: 100) {
pageInfo {
endCursor
hasNextPage
startCursor
}
edges {
node {
id,
name
}
}
}
}
}
}
}
}
{ "owner": "nodejs", "repo": "node", "baseRefName": "master", "prCount": 10, "cursor": "Y3Vyc29yOnYyOpHOCLcpYw==" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment