caarlos0-graveyard/watchub

Migrate to GraphQL?

caarlos0 opened this issue · 2 comments

Followers:

query { 
  viewer { 
    followers(first:30) {
      edges {
        node {
          login
        }
      }
      pageInfo {
        endCursor
      }
    }
  }
}

Stargazers:

query { 
  viewer { 
    repositories(first:30 after:"") {
      edges {
        node {
          name
          isFork
          stargazers(first:30 after:"") {
            edges {
              node {
                login
              }
            }
            pageInfo {
                  endCursor
            }
          }
        }
      }
      pageInfo {
        endCursor
      }
    }
  }
}

nah