Skip to content

Instantly share code, notes, and snippets.

@IvanGoncharov
Last active May 20, 2017 11:09
Show Gist options
  • Save IvanGoncharov/00fcbac3f5da71f5f39e897428e47a28 to your computer and use it in GitHub Desktop.
Save IvanGoncharov/00fcbac3f5da71f5f39e897428e47a28 to your computer and use it in GitHub Desktop.

Top 20 repository on GitHub

{
  top20Repos: Repository @_(
    sortBy: "favorites"
    reverse: none,
    take: 20
  ) {
    full_name
    favorites
  }
}

Top 10 most Tweeting

{
  Top10TwitterAccountsByNumberOfTweets: Tweet @_(
    reject: {postedBy: null}
    countBy: "postedBy.name"
    toPairs: none
    sortBy: "[1]"
    reverse: none
    take: 10
    fromPairs: none
  ) {
    postedBy {
      name
    }
  }
}

Top 20 Github Owners

{
  Top20GithubOwners: Repository @_(
    countBy: "owner.name"
    toPairs: none
    sortBy: "[1]"
    reverse: none
    take: 20
    fromPairs: none
  ){
    owner {
      name
    }
  }
}

More queries comming soon... Follow us on Twitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment