From 2ab6381a94d55fa22b80acdbb18849d6b24951f9 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 21 Jun 2020 22:12:04 +0200 Subject: Reorganize the webUI and API code Included in the changes: - create a new /api root package to hold all API code, migrate /graphql in there - git API handlers all use the cache instead of the repo directly - git API handlers are now tested - git API handlers now require a "repo" mux parameter - lots of untangling of API/handlers/middleware - less code in commands/webui.go --- api/graphql/schema/label.graphql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 api/graphql/schema/label.graphql (limited to 'api/graphql/schema/label.graphql') diff --git a/api/graphql/schema/label.graphql b/api/graphql/schema/label.graphql new file mode 100644 index 00000000..1205915c --- /dev/null +++ b/api/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 -- cgit