aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema/label.graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-09-04 21:05:18 +0200
committerGitHub <noreply@github.com>2019-09-04 21:05:18 +0200
commit3ad2eeb5d07c14a039e0f0028b84033ff9b2c7db (patch)
tree84711541f4164f3c2a86e307732cc9e26e3d3618 /graphql/schema/label.graphql
parentc4bebed2f2ad1e0ec673bbfbbe445bfad963453a (diff)
parent7df170939f2bad0f03b834dda5af1b55bd0d6830 (diff)
downloadgit-bug-3ad2eeb5d07c14a039e0f0028b84033ff9b2c7db.tar.gz
Merge pull request #214 from MichaelMure/label-connection
graphql: make repository.validLabels a connection
Diffstat (limited to 'graphql/schema/label.graphql')
-rw-r--r--graphql/schema/label.graphql19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphql/schema/label.graphql b/graphql/schema/label.graphql
new file mode 100644
index 00000000..1205915c
--- /dev/null
+++ b/graphql/schema/label.graphql
@@ -0,0 +1,19 @@
+"""Label for a bug."""
+type Label {
+ """The name of the label."""
+ name: String!
+ """Color of the label."""
+ color: Color!
+}
+
+type LabelConnection {
+ edges: [LabelEdge!]!
+ nodes: [Label!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+type LabelEdge {
+ cursor: String!
+ node: Label!
+} \ No newline at end of file