Skip to content

Instantly share code, notes, and snippets.

@archaeogeek
Last active November 15, 2020 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archaeogeek/a52b3ddc0fe068a19aa240e55d4ae7cf to your computer and use it in GitHub Desktop.
Save archaeogeek/a52b3ddc0fe068a19aa240e55d4ae7cf to your computer and use it in GitHub Desktop.
Github graphql examples
# 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