Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.