forked from mrhardikjoshi/cody
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
180 lines (142 loc) · 3.62 KB
/
Copy pathschema.graphql
File metadata and controls
180 lines (142 loc) · 3.62 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# An object with an ID.
interface Node {
# ID of the object.
id: ID!
}
# Information about pagination in a connection.
type PageInfo {
# When paginating forwards, the cursor to continue.
endCursor: String
# When paginating forwards, are there more items?
hasNextPage: Boolean!
# When paginating backwards, are there more items?
hasPreviousPage: Boolean!
# When paginating backwards, the cursor to continue.
startCursor: String
}
type PullRequest implements Node {
id: ID!
number: String!
repository: String!
reviewers(
# Returns the elements in the list that come after the specified global ID.
after: String
# Returns the elements in the list that come before the specified global ID.
before: String
# Returns the first _n_ elements from the list.
first: Int
# Returns the last _n_ elements from the list.
last: Int
status: String
): ReviewerConnection
status: String!
}
# The connection type for PullRequest.
type PullRequestConnection {
# A list of edges.
edges: [PullRequestEdge]
# Information to aid in pagination.
pageInfo: PageInfo!
}
# An edge in a connection.
type PullRequestEdge {
# A cursor for use in pagination.
cursor: String!
# The item at the end of the edge.
node: PullRequest
}
# The query root
type Query {
# Fetches an object given its ID.
node(
# ID of the object.
id: ID!
): Node
# Fetches a list of objects given a list of IDs.
nodes(
# IDs of the objects.
ids: [ID!]!
): [Node]!
# The currently authenticated user
viewer: User
}
type Repository implements Node {
id: ID!
name: String!
owner: String!
# Find a PullRequest by number
pullRequest(number: String!): PullRequest
# This repository's Pull Requests
pullRequests(
# Returns the elements in the list that come after the specified global ID.
after: String
# Returns the elements in the list that come before the specified global ID.
before: String
# Returns the first _n_ elements from the list.
first: Int
# Returns the last _n_ elements from the list.
last: Int
status: String
): PullRequestConnection
}
# The connection type for Repository.
type RepositoryConnection {
# A list of edges.
edges: [RepositoryEdge]
# Information to aid in pagination.
pageInfo: PageInfo!
}
# An edge in a connection.
type RepositoryEdge {
# A cursor for use in pagination.
cursor: String!
# The item at the end of the edge.
node: Repository
}
type ReviewRule implements Node {
id: ID!
name: String!
}
type Reviewer implements Node {
id: ID!
login: String!
# The Review Rule that added this Reviewer
reviewRule: ReviewRule
status: String!
versions: [ReviewerVersion]
}
# The connection type for Reviewer.
type ReviewerConnection {
# A list of edges.
edges: [ReviewerEdge]
# Information to aid in pagination.
pageInfo: PageInfo!
}
# An edge in a connection.
type ReviewerEdge {
# A cursor for use in pagination.
cursor: String!
# The item at the end of the edge.
node: Reviewer
}
type ReviewerVersion {
login: [String]
status: [String]
}
type User implements Node {
id: ID!
login: String!
name: String!
repositories(
# Returns the elements in the list that come after the specified global ID.
after: String
# Returns the elements in the list that come before the specified global ID.
before: String
# Returns the first _n_ elements from the list.
first: Int
# Returns the last _n_ elements from the list.
last: Int
): RepositoryConnection
# Find a given repository by the owner and name
repository(owner: String!, name: String!): Repository
}