aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema/label.graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-09-04 21:04:05 +0200
committerMichael Muré <batolettre@gmail.com>2019-09-04 21:04:05 +0200
commit7df170939f2bad0f03b834dda5af1b55bd0d6830 (patch)
tree923011eb7e421c44cb6bcec4f1f5806066c51264 /graphql/schema/label.graphql
parent16af70894c0348ec90dfee69274f7d44ef2eb079 (diff)
downloadgit-bug-7df170939f2bad0f03b834dda5af1b55bd0d6830.tar.gz
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