ListQuery.graphql
1#import "./BugRow.graphql"
2
3query ListBugs(
4 $first: Int
5 $last: Int
6 $after: String
7 $before: String
8 $query: String
9) {
10 repository {
11 name
12 bugs: allBugs(
13 first: $first
14 last: $last
15 after: $after
16 before: $before
17 query: $query
18 ) {
19 ...BugList
20 pageInfo {
21 hasNextPage
22 hasPreviousPage
23 startCursor
24 endCursor
25 }
26 }
27 }
28}
29
30fragment BugList on BugConnection {
31 totalCount
32 edges {
33 cursor
34 node {
35 ...BugRow
36 }
37 }
38}