-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
resource_workspace_label.graphql
73 lines (68 loc) · 1.58 KB
/
resource_workspace_label.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# @genqlient(for: "IssueLabel.description", pointer: true)
# @genqlient(for: "IssueLabel.color", pointer: true)
# @genqlient(for: "IssueLabel.team", pointer: true)
# @genqlient(for: "IssueLabel.parent", pointer: true)
fragment IssueLabel on IssueLabel {
id
name
description
color
parent {
id
}
team {
id
}
}
query getLabel($id: String!) {
issueLabel(id: $id) {
...IssueLabel
}
}
query findWorkspaceLabel($name: String!) {
issueLabels(filter: {
name: {
eq: $name
}
}) {
nodes {
id
team {
id
}
}
}
}
# @genqlient(for: "IssueLabelCreateInput.id", omitempty: true)
# @genqlient(for: "IssueLabelCreateInput.description", pointer: true)
# @genqlient(for: "IssueLabelCreateInput.color", omitempty: true, pointer: true)
# @genqlient(for: "IssueLabelCreateInput.parentId", pointer: true)
# @genqlient(for: "IssueLabelCreateInput.teamId", pointer: true)
mutation createLabel(
$input: IssueLabelCreateInput!
) {
issueLabelCreate(input: $input) {
issueLabel {
...IssueLabel
}
}
}
# @genqlient(for: "IssueLabelUpdateInput.name", omitempty: true)
# @genqlient(for: "IssueLabelUpdateInput.description", pointer: true)
# @genqlient(for: "IssueLabelUpdateInput.color", omitempty: true, pointer: true)
# @genqlient(for: "IssueLabelUpdateInput.parentId", pointer: true)
mutation updateLabel(
$input: IssueLabelUpdateInput!,
$id: String!
) {
issueLabelUpdate(input: $input, id: $id) {
issueLabel {
...IssueLabel
}
}
}
mutation deleteLabel($id: String!) {
issueLabelDelete(id: $id) {
success
}
}