Skip to content

Instantly share code, notes, and snippets.

@jwo

jwo/query.graphql

Last active Nov 4, 2020
Embed
What would you like to do?
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