label.graphql

 1"""Label for a bug."""
 2type Label {
 3    """The name of the label."""
 4    name: String!
 5    """Color of the label."""
 6    color: Color!
 7}
 8
 9type LabelConnection {
10    edges: [LabelEdge!]!
11    nodes: [Label!]!
12    pageInfo: PageInfo!
13    totalCount: Int!
14}
15
16type LabelEdge {
17    cursor: String!
18    node: Label!
19}
20
21enum LabelChangeStatus {
22    ADDED
23    REMOVED
24    DUPLICATE_IN_OP
25    ALREADY_SET
26    DOESNT_EXIST
27}
28
29type LabelChangeResult {
30    """The source label."""
31    label: Label!
32    """The effect this label had."""
33    status: LabelChangeStatus!
34}