chore: remove unused graphql queries
This commit is contained in:
parent
13783bdb76
commit
fc98ef254e
2072
lib/graphql/gh.dart
2072
lib/graphql/gh.dart
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,13 +0,0 @@
|
|||
mutation GhCreateIssue($repoId: ID!, $title: String!, $body: String!) {
|
||||
createIssue(input: { repositoryId: $repoId, title: $title, body: $body }) {
|
||||
issue {
|
||||
number
|
||||
repository {
|
||||
owner {
|
||||
login
|
||||
}
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
mutation GhFollow($id: ID!, $flag: Boolean!) {
|
||||
followUser(input: { userId: $id }) @include(if: $flag) {
|
||||
user {
|
||||
viewerIsFollowing
|
||||
}
|
||||
}
|
||||
unfollowUser(input: { userId: $id }) @skip(if: $flag) {
|
||||
user {
|
||||
viewerIsFollowing
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
query GhObject($owner: String!, $name: String!, $expression: String!) {
|
||||
repository(owner: $owner, name: $name) {
|
||||
object(expression: $expression) {
|
||||
__typename
|
||||
... on Blob {
|
||||
text
|
||||
byteSize # x
|
||||
}
|
||||
... on Tree {
|
||||
entries {
|
||||
type
|
||||
name
|
||||
object {
|
||||
__typename
|
||||
... on Blob {
|
||||
byteSize
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
query GhRepoId($owner: String!, $name: String!) {
|
||||
repository(owner: $owner, name: $name) {
|
||||
id
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
mutation GhStar($id: ID!, $flag: Boolean!) {
|
||||
addStar(input: { starrableId: $id }) @include(if: $flag) {
|
||||
starrable {
|
||||
viewerHasStarred
|
||||
}
|
||||
}
|
||||
removeStar(input: { starrableId: $id }) @skip(if: $flag) {
|
||||
starrable {
|
||||
viewerHasStarred
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
mutation GhWatch($id: ID!, $state: SubscriptionState!) {
|
||||
updateSubscription(input: { subscribableId: $id, state: $state }) {
|
||||
subscribable {
|
||||
__typename
|
||||
... on Repository {
|
||||
viewerSubscription
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue