How do I query the GitHub v4 API for directory contents at a certain tag?

Viewed 1170

How do I query the GitHub API v4 for the contents of a certain directory of a repository at a certain tag?

This is the best I've come up with so far:

query {
  repository(owner:"example", name:"example") {
    refs(refPrefix: "tags") {
    }
  } 
}
1 Answers
Related