Last active
November 15, 2020 18:58
-
-
Save archaeogeek/a52b3ddc0fe068a19aa240e55d4ae7cf to your computer and use it in GitHub Desktop.
Github graphql examples
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
# search for my repos with the topic "talks"- note order doesn't work particularly well | |
query { | |
search(first: 20, type: REPOSITORY, query: "topic:talks user:archaeogeek sort:updated-desc") { | |
pageInfo { | |
hasNextPage | |
endCursor | |
} | |
repositories: edges { | |
repo: node { | |
... on Repository { | |
name, | |
description, | |
updatedAt, | |
url | |
} | |
} | |
} | |
} | |
} | |
# repositories contributed to | |
query { | |
viewer{repositoriesContributedTo(first: 20, orderBy: {field: UPDATED_AT, direction: DESC}) { | |
edges { | |
node { | |
name | |
url | |
description | |
updatedAt | |
} | |
} | |
}} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment