aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/list/ListQuery.graphql
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2020-02-04 20:57:43 +0100
committerQuentin Gliech <quentingliech@gmail.com>2020-02-11 20:54:37 +0100
commit6a502c145bd8f2e2e1a9c0b103c11f0433c60737 (patch)
tree72c3a23aa6c5df8013d53523fa4125a3e28063a8 /webui/src/list/ListQuery.graphql
parent9c570cac725fe7048ddd1d181b33b8fa1808e401 (diff)
downloadgit-bug-6a502c145bd8f2e2e1a9c0b103c11f0433c60737.tar.gz
webui: convert bug list to typescript
Diffstat (limited to 'webui/src/list/ListQuery.graphql')
-rw-r--r--webui/src/list/ListQuery.graphql37
1 files changed, 37 insertions, 0 deletions
diff --git a/webui/src/list/ListQuery.graphql b/webui/src/list/ListQuery.graphql
new file mode 100644
index 00000000..bf9ea80a
--- /dev/null
+++ b/webui/src/list/ListQuery.graphql
@@ -0,0 +1,37 @@
+#import "./BugRow.graphql"
+
+query ListBugs(
+ $first: Int
+ $last: Int
+ $after: String
+ $before: String
+ $query: String
+) {
+ defaultRepository {
+ bugs: allBugs(
+ first: $first
+ last: $last
+ after: $after
+ before: $before
+ query: $query
+ ) {
+ ...BugList
+ pageInfo {
+ hasNextPage
+ hasPreviousPage
+ startCursor
+ endCursor
+ }
+ }
+ }
+}
+
+fragment BugList on BugConnection {
+ totalCount
+ edges {
+ cursor
+ node {
+ ...BugRow
+ }
+ }
+}