Last active
April 20, 2018 13:27
-
-
Save YakDriver/7771c73d0616709f94e756c63652958f to your computer and use it in GitHub Desktop.
GraphQL GitHub API examples, using operations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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