forked from biobakery/firecloud-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
executable file
·380 lines (320 loc) · 7.34 KB
/
schema.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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
type Aggregations {
buckets: [Bucket]
}
type Bucket {
doc_count: Int
key: String
key_as_string: String
}
type CartSummary {
aggregations(filters: FiltersArgument): CartSummaryAggs
}
type CartSummaryAggs {
fs: FileSize
}
type Case implements Node {
# The ID of the object.
id: ID!
case_id: String
primary_site: String
submitter_id: String
demographic: Demographic
metadata_participant: MetadataParticipant
metadata_sample: [MetadataSample]
project: Project
summary: Summary
annotations: CaseAnnotations
files: CaseFiles
}
type MetadataParticipant {
id: Int
participant: Int
age_2012: Int
totMETs1: Float
weight_lbs: Float
}
type MetadataSample
id: Int
project: String
sample: String
participant: Int
DaysSince1Jan12: Int
drAlcohol: Float
drB12: Float
drCalories: Float
drCarbs: Float
drCholine: Float
drFat: Float
drFiber: Float
drFolate: Float
drIron: Float
drProtein: Float
participant: Int
q2Alcohol: String
q2B12: String
q2Calories: String
q2Carbs: String
q2Choline: String
q2Fat: String
q2Fiber: String
q2Folate: String
q2Iron: String
q2Protein: String
Time: String
week: Int
type CaseAggregations {
demographic__ethnicity: Aggregations
demographic__gender: Aggregations
demographic__race: Aggregations
metadata_participant__age_2012: Aggregations
metadata_participant__totMETs1: Aggregations
metadata_participant__weight_lbs: Aggregations
primary_site: Aggregations
project__project_id: Aggregations
project__program__name: Aggregations
}
type CaseAnnotation implements Node {
# The ID of the object.
id: ID!
annotation_id: String
}
type CaseAnnotationConnection {
pageInfo: PageInfo!
edges: [CaseAnnotationEdge]!
total: Int
}
type CaseAnnotationEdge {
# The item at the end of the edge
node: CaseAnnotation
# A cursor for use in pagination
cursor: String!
}
type CaseAnnotations {
hits(first: Int, offset: Int, score: String, sort: [Sort], filters: FiltersArgument, before: String, after: String, last: Int): CaseAnnotationConnection
}
type CaseConnection {
pageInfo: PageInfo!
edges: [CaseEdge]!
total: Int
}
type CaseEdge {
# The item at the end of the edge
node: Case
# A cursor for use in pagination
cursor: String!
}
type CaseFile implements Node {
# The ID of the object.
id: ID!
case_id: String
experimental_strategy: String
data_category: String
data_format: String
platform: String
access: String
}
type CaseFileConnection {
pageInfo: PageInfo!
edges: [CaseFileEdge]!
total: Int
}
type CaseFileEdge {
# The item at the end of the edge
node: CaseFile
# A cursor for use in pagination
cursor: String!
}
type CaseFiles {
hits(first: Int, offset: Int, sort: [Sort], filters: FiltersArgument, before: String, after: String, last: Int): CaseFileConnection
}
type Count {
projects: String
participants: String
samples: String
dataFormats: String
rawFiles: String
processedFiles: String
}
type DataCategories {
case_count: Int
file_count: Int
data_category: String
}
type Demographic {
ethnicity: String
gender: String
race: String
}
type entitiesWithType {
namespace: ID
workspace: ID
attributes: String
}
type entity {
namespace: ID
workspace: ID
name: String
entityType: String
attributes: String
}
type ExperimentalStrategies {
case_count: Int
file_count: Int
experimental_strategy: String
}
type File implements Node {
# The ID of the object.
id: ID!
name: String
participant: String
sample: String
access: String
file_size: Float
data_category: String
data_format: String
platform: String
experimental_strategy: String
file_name: String
cases: FileCases
file_id: String
type: String
}
type FileAggregations {
data_category: Aggregations
experimental_strategy: Aggregations
data_format: Aggregations
platform: Aggregations
access: Aggregations
cases__project__project_id: Aggregations
cases__primary_site: Aggregations
}
type FileCase implements Node {
# The ID of the object.
id: ID!
case_id: String
project: Project
demographic: Demographic
metadata_participant: MetadataParticipant
primary_site: String
}
type FileCaseConnection {
pageInfo: PageInfo!
edges: [FileCaseEdge]!
total: Int
}
type FileCaseEdge {
# The item at the end of the edge
node: FileCase
# A cursor for use in pagination
cursor: String!
}
type FileCases {
hits(first: Int, offset: Int, sort: [Sort], filters: FiltersArgument, before: String, after: String, last: Int): FileCaseConnection
}
type FileConnection {
pageInfo: PageInfo!
edges: [FileEdge]!
total: Int
}
type FileEdge {
# The item at the end of the edge
node: File
# A cursor for use in pagination
cursor: String!
}
type Files {
hits(first: Int, offset: Int, score: String, sort: [Sort], filters: FiltersArgument, before: String, after: String, last: Int): FileConnection
facets(filters: FiltersArgument, facets: [String]): JSONString
aggregations(filters: FiltersArgument, aggregations_filter_themselves: Boolean): FileAggregations
}
type FileSize {
value: Float
}
scalar FiltersArgument
# JSON String
scalar JSONString
# An object with an ID
interface Node {
# The ID of the object.
id: ID!
}
type PageInfo {
# 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
# When paginating forwards, the cursor to continue.
endCursor: String
}
type Program {
name: String
program_id: String
id: String
}
type Project implements Node {
# The ID of the object.
id: ID!
project_id: String
name: String
program: Program
summary: Summary
primary_site: [String]
}
type ProjectAggregations {
primary_site: Aggregations
program__name: Aggregations
project_id: Aggregations
summary__experimental_strategies__experimental_strategy: Aggregations
summary__data_categories__data_category: Aggregations
}
type ProjectConnection {
pageInfo: PageInfo!
edges: [ProjectEdge]!
total: Int
}
type ProjectEdge {
# The item at the end of the edge
node: Project
# A cursor for use in pagination
cursor: String!
}
type Projects {
aggregations(filters: FiltersArgument, aggregations_filter_themselves: Boolean): ProjectAggregations
hits(first: Int, offset: Int, sort: [Sort], filters: FiltersArgument, before: String, after: String, last: Int): ProjectConnection
}
type Query {
viewer: Root
# The ID of the object
node(id: ID!): Node
entities_with_type(namespace: ID!, workspace: ID!): [entitiesWithType]
samples(namespace: ID!, workspace: ID!): [entity]
}
type Repository {
files: Files
cases: RepositoryCases
}
type RepositoryCases {
hits(first: Int, offset: Int, sort: [Sort], score: String, filters: FiltersArgument, before: String, after: String, last: Int): CaseConnection
aggregations(filters: FiltersArgument, aggregations_filter_themselves: Boolean): CaseAggregations
facets(filters: FiltersArgument, facets: [String]): JSONString
}
type Root {
user: User
count: Count
repository: Repository
projects: Projects
cart_summary: CartSummary
}
scalar Sort
type Summary {
case_count: Int
file_count: Int
file_size: Float
data_categories: [DataCategories]
experimental_strategies: [ExperimentalStrategies]
}
type User {
username: String
}