Skip to content

Instantly share code, notes, and snippets.

@katopz
Last active April 25, 2018 14:02
Show Gist options
  • Save katopz/3b3e4c011451f79770aaf035a1cb4016 to your computer and use it in GitHub Desktop.
Save katopz/3b3e4c011451f79770aaf035a1cb4016 to your computer and use it in GitHub Desktop.
GraphQL Github Example
// Try at : https://graphql-explorer.githubapp.com/
// With query variables below
// {"name": "react", "login": "facebook", "states": "CLOSED"}
query GetRepositoryIssues($states: [IssueState!], $name: String!, $login: String!) {
repositoryOwner(login: $login) {
repository(name: $name) {
issues(last: 10, states: $states) {
edges {
node {
title
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment