aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-05-22 20:56:37 +0200
committerGitHub <noreply@github.com>2019-05-22 20:56:37 +0200
commit6e20bf0e73862854aea0cd759a880a6b5f473880 (patch)
tree54c7b0f20fa8588f79f7bd9c121630d502b5e1be /graphql/schema
parent485ca5900486b7fc3ea71cbcbb39b87272ae09fd (diff)
parentaa6247ce870075922a1309718e8fafee321ef51d (diff)
downloadgit-bug-6e20bf0e73862854aea0cd759a880a6b5f473880.tar.gz
Merge pull request #113 from ludovicm67/patch-colors
bug: add label color directly in the core
Diffstat (limited to 'graphql/schema')
-rw-r--r--graphql/schema/types.graphql19
1 files changed, 18 insertions, 1 deletions
diff --git a/graphql/schema/types.graphql b/graphql/schema/types.graphql
index 2eaa07a2..22447aae 100644
--- a/graphql/schema/types.graphql
+++ b/graphql/schema/types.graphql
@@ -1,7 +1,24 @@
scalar Time
-scalar Label
scalar Hash
+"""Defines a color by red, green and blue components."""
+type Color {
+ """Red component of the color."""
+ R: Int!
+ """Green component of the color."""
+ G: Int!
+ """Blue component of the color."""
+ B: Int!
+}
+
+"""Label for a bug."""
+type Label {
+ """The name of the label."""
+ name: String!
+ """Color of the label."""
+ color: Color!
+}
+
"""Information about pagination in a connection."""
type PageInfo {
"""When paginating forwards, are there more items?"""