Skip to content

Instantly share code, notes, and snippets.

@YakDriver
Last active April 20, 2018 13:27
Show Gist options
  • Save YakDriver/7771c73d0616709f94e756c63652958f to your computer and use it in GitHub Desktop.
Save YakDriver/7771c73d0616709f94e756c63652958f to your computer and use it in GitHub Desktop.
GraphQL GitHub API examples, using operations
# named operation
query GetRelease($owner: String!, $repo: String!, $tag: String!) {
repository(
owner: $owner,
name: $repo
) {
release(tagName: $tag) {
name
id
releaseAssets(first:10) {
nodes {
downloadUrl
}
}
}
}
}
# operation variables
{
"owner": "YakDriver",
"repo": "pyppyn",
"tag": "0.2.3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment