Last active
May 31, 2021 20:53
-
-
Save jwo/99fa81c67fd9562da78c5949a3599cc6 to your computer and use it in GitHub Desktop.
GraphQL example: current user's 100 most current public repos
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
{ | |
viewer { | |
repositories(privacy: PUBLIC, first: 3, orderBy: {field: PUSHED_AT, direction: DESC}) { | |
nodes { | |
nameWithOwner | |
url | |
} | |
} | |
} | |
} |
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
{ | |
"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