Skip to content

Instantly share code, notes, and snippets.

@jwo
Last active May 31, 2021 20:53
Show Gist options
  • Save jwo/99fa81c67fd9562da78c5949a3599cc6 to your computer and use it in GitHub Desktop.
Save jwo/99fa81c67fd9562da78c5949a3599cc6 to your computer and use it in GitHub Desktop.
GraphQL example: current user's 100 most current public repos
{
viewer {
repositories(privacy: PUBLIC, first: 3, orderBy: {field: PUSHED_AT, direction: DESC}) {
nodes {
nameWithOwner
url
}
}
}
}
{
"data": {
"viewer": {
"repositories": {
"nodes": [
{
"nameWithOwner": "jwo/react-hover-image",
"url": "https://github.com/jwo/react-hover-image"
},
{
"nameWithOwner": "sketch-city/harvey-api",
"url": "https://github.com/sketch-city/harvey-api"
},
{
"nameWithOwner": "jwo/slack-score",
"url": "https://github.com/jwo/slack-score"
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment