Skip to content

Instantly share code, notes, and snippets.

@dreness
Created November 25, 2020 05:04
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 dreness/68c31bf23e413468d7b1e66bebba92d2 to your computer and use it in GitHub Desktop.
Save dreness/68c31bf23e413468d7b1e66bebba92d2 to your computer and use it in GitHub Desktop.
Enumerate pinned items owned by stargazers of a repository with given owner and name
query ($owner: String!, $name: String!, $gazers: Int, $items: Int) {
repository(owner: $owner, name: $name) {
name
description
resourcePath
id
stargazers(last: $gazers, orderBy: {field: STARRED_AT, direction: DESC}) {
edges {
starredAt
node {
name
id
itemShowcase {
items(first: $items) {
edges {
node {
... on Repository {
id
url
name
description
}
}
}
}
}
}
}
}
}
}
@dreness
Copy link
Author

dreness commented Nov 25, 2020

... as pictured here in the GraphiQL app:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment