-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenqlient.graphql
74 lines (68 loc) · 1.23 KB
/
genqlient.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
query GetPublicRepos($query: String!, $limit: Int!, $cursor: String!) {
rateLimit {
limit
remaining
used
resetAt
cost
nodeCount
}
search(type: REPOSITORY, query: $query, first: $limit, after: $cursor) {
repositoryCount
edges {
node {
... on Repository {
id
stargazerCount
description
forkCount
homepageUrl
name
nameWithOwner
updatedAt
primaryLanguage {
name
}
languages(first: 100, orderBy: { field: SIZE, direction: DESC }) {
edges {
node {
name
color
}
}
}
}
}
}
}
}
query GetStarGazers($id: ID!, $cursor: String!) {
rateLimit {
remaining
resetAt
}
node(id: $id) {
... on Repository {
stargazers(first: 100, after: $cursor, orderBy: {field: STARRED_AT, direction: DESC}) {
totalCount
pageInfo {
hasNextPage
endCursor
}
edges {
starredAt
}
}
}
}
}
query GetRateLimit {
rateLimit {
limit
remaining
used
cost
nodeCount
resetAt
}
}