Last active
January 15, 2019 09:54
-
-
Save vinkrish/99c38bdade8b0e96129fc68d5ed2561a to your computer and use it in GitHub Desktop.
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
# Comment | |
{ | |
graphQLHub | |
github { | |
// Object Field | |
user(username: "clayallsopp") { // username is Field arguments | |
login // Scalar Field | |
id | |
avatar_url | |
} | |
// Object Feild End | |
repo(ownerUsername: "clayallsopp", name: "graphqlhub") { | |
id | |
name | |
issues(limit: 1) { | |
id | |
state | |
title | |
} | |
branches(limit: 1) { | |
name | |
lastCommit { | |
...commit | |
} | |
} | |
commits(limit: 1) { | |
...commit | |
} | |
} | |
} | |
} | |
fragment status on GithubStatus { | |
state | |
description | |
target_url | |
context | |
updated_at | |
} | |
fragment commit on GithubCommit { | |
sha | |
message | |
status { | |
...status | |
} | |
author { | |
// Inline Fragments | |
... on GithubUser { | |
login | |
id | |
} | |
// Inline Fragments End | |
... on GithubCommitAuthor { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment