Skip to content

Instantly share code, notes, and snippets.

@anoobbava
Created July 9, 2019 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoobbava/4b33d6e2b1c260ed86e320e56196db0c to your computer and use it in GitHub Desktop.
Save anoobbava/4b33d6e2b1c260ed86e320e56196db0c to your computer and use it in GitHub Desktop.
blog for github graphql
//src/queries/trendingRepoDetailsQuery.js
import gql from 'graphql-tag'
export const TRENDING_REPO_DETAILS_QUERY = gql`
query SearchMostTop10Star($queryString: String!) {
search(query: $queryString, type: REPOSITORY, first: 40) {
edges {
node {
... on Repository {
owner {
avatarUrl
url
}
name
stargazers {
totalCount
}
forks {
totalCount
}
}
}
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment