From a2721971ba82a6ba0e735bd06cf555a4c1bca84e Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 3 Feb 2020 23:08:26 +0100 Subject: webui: generate TS types for graphql queries --- webui/src/bug/BugQuery.graphql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 webui/src/bug/BugQuery.graphql (limited to 'webui/src/bug/BugQuery.graphql') diff --git a/webui/src/bug/BugQuery.graphql b/webui/src/bug/BugQuery.graphql new file mode 100644 index 00000000..caa247ed --- /dev/null +++ b/webui/src/bug/BugQuery.graphql @@ -0,0 +1,9 @@ +#import "./Bug.graphql" + +query GetBug($id: String!) { + defaultRepository { + bug(prefix: $id) { + ...Bug + } + } +} -- cgit From 465f7ca73d7093eeeecb6553c804d8cfb06e6652 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 11 Feb 2020 21:49:19 +0100 Subject: webui: stop using defaultRepository --- webui/src/bug/BugQuery.graphql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webui/src/bug/BugQuery.graphql') diff --git a/webui/src/bug/BugQuery.graphql b/webui/src/bug/BugQuery.graphql index caa247ed..cdc4723f 100644 --- a/webui/src/bug/BugQuery.graphql +++ b/webui/src/bug/BugQuery.graphql @@ -1,7 +1,7 @@ #import "./Bug.graphql" query GetBug($id: String!) { - defaultRepository { + repository { bug(prefix: $id) { ...Bug } -- cgit