mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-01 11:57:37 -05:00
refactor: split gql queries into files
This commit is contained in:
33
lib/gql_github/releases.graphql
Normal file
33
lib/gql_github/releases.graphql
Normal file
@@ -0,0 +1,33 @@
|
||||
# import './fragments.graphql'
|
||||
|
||||
query Releases($name: String!, $owner: String!, $cursor: String) {
|
||||
repository(name: $name, owner: $owner) {
|
||||
releases(
|
||||
first: 30
|
||||
after: $cursor
|
||||
orderBy: { field: CREATED_AT, direction: DESC }
|
||||
) {
|
||||
pageInfo {
|
||||
...PageInfoParts
|
||||
}
|
||||
nodes {
|
||||
tagName
|
||||
description
|
||||
name
|
||||
author {
|
||||
name
|
||||
avatarUrl
|
||||
}
|
||||
publishedAt
|
||||
url
|
||||
releaseAssets(first: 30) {
|
||||
nodes {
|
||||
name
|
||||
downloadUrl
|
||||
downloadCount
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user