Created
May 22, 2020 11:36
-
-
Save kellydavid/18e73e2a0d21792231bf0cb8f4cb7781 to your computer and use it in GitHub Desktop.
Trying out github graphql api
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
query GetRepositories { | |
repositoryOwner(login: "kellydavid") { | |
login | |
repositories(first: 10, after:"Y3Vyc29yOnYyOpILzg4z6pg=", orderBy: {field: STARGAZERS, direction: DESC}) { | |
totalCount | |
totalDiskUsage | |
edges { | |
cursor | |
node { | |
id | |
databaseId | |
name | |
createdAt | |
isPrivate | |
stargazers { | |
totalCount | |
} | |
} | |
} | |
totalDiskUsage | |
} | |
} | |
} | |
query NodesNode { | |
nodes(ids: ["MDEwOlJlcG9zaXRvcnkyMzgyODM0MTY="]) { | |
... on Repository { | |
id | |
name | |
createdAt | |
databaseId | |
stargazers { | |
totalCount | |
} | |
issues { | |
totalCount | |
pageInfo { | |
startCursor | |
endCursor | |
} | |
} | |
databaseId | |
} | |
} | |
} | |
mutation MyMutation { | |
__typename | |
changeUserStatus(input: {limitedAvailability: true, message: "Not available right now..."}) { | |
clientMutationId | |
status { | |
message | |
indicatesLimitedAvailability | |
} | |
} | |
} | |
query searchForKafkaRepos { | |
search(first: 3, query: "kastle", type: REPOSITORY) { | |
repositoryCount | |
edges { | |
node { | |
... RepositoryFr | |
} | |
} | |
} | |
} | |
fragment RepositoryFr on Repository { | |
name | |
stargazers { | |
totalCount | |
} | |
url | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment