Last active
April 25, 2018 14:02
-
-
Save katopz/3b3e4c011451f79770aaf035a1cb4016 to your computer and use it in GitHub Desktop.
GraphQL Github Example
This file contains 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
// 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