From 9adf6de4b5f3df44657d336ed49f9b992d50f458 Mon Sep 17 00:00:00 2001 From: ludovicm67 Date: Wed, 10 Apr 2019 21:50:03 +0200 Subject: graphql: expose label color --- graphql/schema/types.graphql | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'graphql/schema/types.graphql') 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?""" -- cgit