refactor: split gql queries into files

This commit is contained in:
Rongjian Zhang
2022-10-01 03:49:56 +08:00
parent d5f3bd9f24
commit 7b08f4cc07
31 changed files with 615 additions and 639 deletions

View 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
}
}
}
}
}
}