Does GitHub's GraphQL API have an equivalent to the contents API?
I can't seem to come up with a query that accepts repo owner, repo name and file path and returns the contents of the file. I'm guessing it has something to do with the tree object?
Does GitHub's GraphQL API have an equivalent to the contents API?
I can't seem to come up with a query that accepts repo owner, repo name and file path and returns the contents of the file. I'm guessing it has something to do with the tree object?
After some digging, found it:
The argument passed to
expression
on theobject
field is actually a git revision expression suitable forrev-parse
, so I guess you can have fun with it to do advanced querying.Documentation: