Skip to content

Instantly share code, notes, and snippets.

@rondinif
Created October 12, 2019 17:59
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 rondinif/2efe31f06b95155a82de6355d1576596 to your computer and use it in GitHub Desktop.
Save rondinif/2efe31f06b95155a82de6355d1576596 to your computer and use it in GitHub Desktop.
get the text of all the README.md on the master branch of my own repositories on github ( with syntax comparison between api.github.com.graphql and gatsby http://localhost:8000/___graphql?query= )
query {
viewer {
repositories(first: 100, privacy: PUBLIC, ownerAffiliations: OWNER, isFork: false) {
edges {
node {
name
readme: object(expression: "master:README.md") {
... on Blob {
text
}
}
}
}
}
}
}
query AllMyRepoREADME {
github {
viewer {
repositories(first: 100, privacy: PUBLIC, ownerAffiliations: OWNER, isFork: false) {
edges {
node {
name
readme: object(expression: "master:README.md") {
... on GitHub_Blob {
text
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment