mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-03 02:04:40 -05:00
refactor: split gql queries into files
This commit is contained in:
38
lib/gql_github/repos.graphql
Normal file
38
lib/gql_github/repos.graphql
Normal file
@@ -0,0 +1,38 @@
|
||||
# import './fragments.graphql'
|
||||
|
||||
fragment RepoPartsWithTime on Repository {
|
||||
...RepoParts
|
||||
updatedAt
|
||||
}
|
||||
query Repos($login: String!, $after: String) {
|
||||
repositoryOwner(login: $login) {
|
||||
repositories(
|
||||
first: 30
|
||||
after: $after
|
||||
orderBy: { field: UPDATED_AT, direction: DESC }
|
||||
) {
|
||||
pageInfo {
|
||||
...PageInfoParts
|
||||
}
|
||||
nodes {
|
||||
...RepoPartsWithTime
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
query Stars($login: String!, $after: String) {
|
||||
user(login: $login) {
|
||||
starredRepositories(
|
||||
first: 30
|
||||
after: $after
|
||||
orderBy: { field: STARRED_AT, direction: DESC }
|
||||
) {
|
||||
pageInfo {
|
||||
...PageInfoParts
|
||||
}
|
||||
nodes {
|
||||
...RepoPartsWithTime
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user