-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.graphqls
188 lines (162 loc) · 2.79 KB
/
schema.graphqls
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
181
182
183
184
185
186
187
188
directive @isAuthenticated on FIELD_DEFINITION
scalar DateTime
scalar URI
interface Node {
id: ID!
}
type PageInfo {
endCursor: String
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
}
type Repository implements Node {
id: ID!
owner: User!
name: String!
createdAt: DateTime!
issue(
number: Int!
): Issue
issues(
after: String
before: String
first: Int
last: Int
): IssueConnection!
pullRequest(
number: Int!
): PullRequest
pullRequests(
after: String
before: String
first: Int
last: Int
): PullRequestConnection!
}
type User implements Node {
id: ID!
name: String!
projectV2(
number: Int!
): ProjectV2
projectV2s(
after: String
before: String
first: Int
last: Int
): ProjectV2Connection!
}
type Issue implements Node {
id: ID!
url: URI!
title: String!
closed: Boolean!
number: Int!
author: User!
repository: Repository!
projectItems(
after: String
before: String
first: Int
last: Int
): ProjectV2ItemConnection!
}
type IssueConnection {
edges: [IssueEdge]
nodes: [Issue]
pageInfo: PageInfo!
totalCount: Int!
}
type IssueEdge {
cursor: String!
node: Issue
}
type PullRequest implements Node {
id: ID!
baseRefName: String!
closed: Boolean!
headRefName: String!
url: URI!
number: Int!
repository: Repository!
projectItems(
after: String
before: String
first: Int
last: Int
): ProjectV2ItemConnection!
}
type PullRequestConnection {
edges: [PullRequestEdge]
nodes: [PullRequest]
pageInfo: PageInfo!
totalCount: Int!
}
type PullRequestEdge {
cursor: String!
node: PullRequest
}
type ProjectV2 implements Node {
id: ID!
title: String!
url: URI!
number: Int!
items(
after: String
before: String
first: Int
last: Int
): ProjectV2ItemConnection!
owner: User!
}
type ProjectV2Connection {
edges: [ProjectV2Edge]
nodes: [ProjectV2]
pageInfo: PageInfo!
totalCount: Int!
}
type ProjectV2Edge {
cursor: String!
node: ProjectV2
}
union ProjectV2ItemContent = Issue | PullRequest
type ProjectV2Item implements Node {
id: ID!
project: ProjectV2!
content: ProjectV2ItemContent
}
type ProjectV2ItemConnection {
edges: [ProjectV2ItemEdge]
nodes: [ProjectV2Item]
pageInfo: PageInfo!
totalCount: Int!
}
type ProjectV2ItemEdge {
cursor: String!
node: ProjectV2Item
}
type Query {
repository(
name: String!
owner: String!
): Repository
user(
name: String!
): User @isAuthenticated
node(
id: ID!
): Node
}
input AddProjectV2ItemByIdInput {
contentId: ID!
projectId: ID!
}
type AddProjectV2ItemByIdPayload {
item: ProjectV2Item
}
type Mutation {
addProjectV2ItemById(
input: AddProjectV2ItemByIdInput!
): AddProjectV2ItemByIdPayload
}