git-touch-android-ios-app/packages/gql_github/lib/user.graphql

131 lines
1.7 KiB
GraphQL
Raw Normal View History

2022-09-30 22:50:47 +02:00
fragment RepoParts on Repository {
owner {
login
avatarUrl
}
name
description
isPrivate
isFork
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
}
}
2022-09-30 21:49:56 +02:00
2022-09-30 22:50:47 +02:00
fragment UserParts on User {
login
name
avatarUrl
location
createdAt
2022-09-30 21:49:56 +02:00
company
bio
url
email
websiteUrl
twitterUsername
2022-09-30 21:49:56 +02:00
viewerCanFollow # TODO: remove in viewer query
viewerIsFollowing
sponsors {
totalCount
}
followers {
totalCount
}
following {
totalCount
}
contributionsCollection {
contributionCalendar {
weeks {
contributionDays {
color
}
}
}
}
organizations(first: 10) {
2022-09-30 21:49:56 +02:00
totalCount
nodes {
login
avatarUrl
}
2022-09-30 21:49:56 +02:00
}
repositories(
first: 6
ownerAffiliations: OWNER
orderBy: { field: STARGAZERS, direction: DESC }
) {
totalCount
nodes {
...RepoParts
}
}
starredRepositories {
totalCount
}
gists {
totalCount
}
pinnedItems(first: 6) {
nodes {
... on Repository {
...RepoParts
}
}
}
}
query Viewer {
viewer {
2022-09-30 22:50:47 +02:00
...UserParts
2022-09-30 21:49:56 +02:00
}
}
query User($login: String!) {
user(login: $login) {
2022-09-30 22:50:47 +02:00
...UserParts
2022-09-30 21:49:56 +02:00
}
organization(login: $login) {
login
avatarUrl
name
url
description
location
email
websiteUrl
twitterUsername
2022-09-30 21:49:56 +02:00
createdAt
viewerIsFollowing
sponsors {
totalCount
}
membersWithRole {
totalCount
}
pinnedItems(first: 6) {
nodes {
... on Repository {
...RepoParts
}
}
}
pinnableItems(first: 6, types: [REPOSITORY]) {
totalCount
nodes {
... on Repository {
...RepoParts
}
}
}
}
}