master
 1fragment Issue on Issue {
 2  id
 3  createdAt
 4  closedAt
 5  closed
 6  author {
 7    login
 8  }
 9  url
10  number
11  title
12  labels(first: 10) {
13    totalCount
14    nodes {
15      name
16    }
17  }
18  body
19  comments(first: 1) {
20    totalCount
21  }
22  assignees(first: 3) {
23    totalCount
24  }
25  repository {
26    isPrivate
27    nameWithOwner
28    owner {
29      login
30    }
31    name
32  }
33  reactionsTotal: reactions {
34    totalCount
35  }
36  timelineItemsTotal: timelineItems {
37    totalCount
38  }
39}
40
41query IssuesQuery($username: String!, $num: Int = 100, $cursor: String) {
42  user(login: $username) {
43    issues(first: $num, after: $cursor, filterBy: { createdBy: $username }) {
44      totalCount
45      nodes {
46        ...Issue
47      }
48      pageInfo {
49        hasNextPage
50        endCursor
51      }
52    }
53  }
54  rateLimit {
55    limit
56    cost
57    remaining
58    resetAt
59  }
60}