shurcooL / githubv4

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql).
MIT License
1.12k stars 89 forks source link

Query list of template repos owned by team? #61

Open EcHoOfInSaNiTy opened 4 years ago

EcHoOfInSaNiTy commented 4 years ago

Hello,

I'm unable to find documentation as to how I could nest this query into a struct, does anyone have any ideas how I could go about doing this?

organization(login: "myorg") {
    name
    team(slug: "myteam") {
      repositories(orderBy: {field: NAME, direction: ASC}, first: 100) {
        edges {
          node {
            name
            sshUrl
            isTemplate
          }
        }
      }
    }
  }
}