Last active
April 6, 2020 14:42
-
-
Save MoatazAbdAlmageed/9f1215d5abf1b090ebf92b9377a6d46d to your computer and use it in GitHub Desktop.
graphqlhub
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
query graphQLHub($userName: String!, $includeRepos: Boolean!) { | |
github { | |
user(username: $userName) { | |
login | |
id | |
avatar_url | |
repos @include(if: $includeRepos) { | |
...repoInfo | |
} | |
} | |
} | |
} | |
fragment repoInfo on GithubRepo { | |
repoName: name | |
commits{ | |
message | |
author{ | |
# in line fragment | |
... on GithubUser{ | |
login | |
} | |
... on GithubCommitAuthor{ | |
} | |
} | |
} | |
} |
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
{ | |
"userName": "MoatazAbdAlmageed", | |
"includeRepos": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment