Skip to content

Instantly share code, notes, and snippets.

@gr2m
Created July 19, 2017 21:49
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 gr2m/4e085e94a79dc811f31463ce49b97839 to your computer and use it in GitHub Desktop.
Save gr2m/4e085e94a79dc811f31463ce49b97839 to your computer and use it in GitHub Desktop.
With GitHub’s new GraphQL API, you can send a single request to list of files with their content. Try it out on https://developer.github.com/v4/explorer/
{
organization(login: "offlinefirst") {
repository(name: "offlinefirst.org") {
object(expression: "gh-pages:_posts/") {
... on Tree {
entries {
object {
... on Blob {
text
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment