master
1fragment Repository on Repository {
2 id
3 name
4 owner {
5 login
6 }
7 url
8 description
9 createdAt
10 updatedAt
11 languages(first: 10, orderBy: { field: SIZE, direction: DESC }) {
12 totalCount
13 nodes {
14 name
15 }
16 }
17 forks {
18 totalCount
19 }
20 stargazers {
21 totalCount
22 }
23 defaultBranchRef {
24 name
25 target {
26 ... on Commit {
27 history(author: { id: $author }) {
28 totalCount
29 }
30 }
31 }
32 }
33 isEmpty
34}
35
36query ReposQuery(
37 $login: String!
38 $author: ID!
39 $num: Int = 50
40 $cursor: String
41) {
42 user(login: $login) {
43 repositories(
44 first: $num
45 after: $cursor
46 orderBy: { field: CREATED_AT, direction: DESC }
47 privacy: PUBLIC
48 ) {
49 totalCount
50 nodes {
51 ...Repository
52 }
53 pageInfo {
54 hasNextPage
55 endCursor
56 }
57 }
58 }
59 rateLimit {
60 cost
61 remaining
62 resetAt
63 limit
64 }
65}