Skip to content

Instantly share code, notes, and snippets.

@kellydavid
Created May 22, 2020 11:36
Show Gist options
  • Save kellydavid/18e73e2a0d21792231bf0cb8f4cb7781 to your computer and use it in GitHub Desktop.
Save kellydavid/18e73e2a0d21792231bf0cb8f4cb7781 to your computer and use it in GitHub Desktop.
Trying out github graphql api
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