I want to use the GraphQL Github API to recursively list all the files contained in a directory. Right now my request is like this:
{
search(first:1, type: REPOSITORY, query: "language:C") {
edges {
node {
... on Repository {
name
descriptionHTML
stargazers {
totalCount
}
forks {
totalCount
}
object(expression: "master:") {
... on Tree {
entries {
name
type
}
}
}
}
}
}
}
}
However, this only gives me only the first level of directory contents, in particular, some of the resulting objects are again trees. Is there a way to tune the query so that it recursively lists the contents of the tree again?
Sleik source
share