-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
735 lines (675 loc) · 17.7 KB
/
schema.graphql
File metadata and controls
735 lines (675 loc) · 17.7 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
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
schema {
query: Query
mutation: Mutation
}
input BooleanRange {
begin: Boolean!
end: Boolean!
}
input CompanyFilter {
company_id: Float
company_id_ne: Float
company_id_like: Float
company_id_ilike: Float
company_id_is_null: Boolean
company_id_in: [Float!]
company_id_not_in: [Float!]
company_id_lt: Float
company_id_lte: Float
company_id_gt: Float
company_id_gte: Float
company_id_range: FloatRange
company_id_contains: Float
company_id_contained_by: Float
company_id_overlap: Float
company_name: String
company_name_ne: String
company_name_like: String
company_name_ilike: String
company_name_is_null: Boolean
company_name_in: [String!]
company_name_not_in: [String!]
company_name_lt: String
company_name_lte: String
company_name_gt: String
company_name_gte: String
company_name_range: StringRange
company_name_contains: String
company_name_contained_by: String
company_name_overlap: String
and: [CompanyFilter!]
or: [CompanyFilter!]
not: CompanyFilter
}
interface DatabaseId {
db_id: Int
}
scalar DateTime
input DateTimeRange {
begin: DateTime!
end: DateTime!
}
input DepartmentFilter {
department_id: Float
department_id_ne: Float
department_id_like: Float
department_id_ilike: Float
department_id_is_null: Boolean
department_id_in: [Float!]
department_id_not_in: [Float!]
department_id_lt: Float
department_id_lte: Float
department_id_gt: Float
department_id_gte: Float
department_id_range: FloatRange
department_id_contains: Float
department_id_contained_by: Float
department_id_overlap: Float
company_id: Float
company_id_ne: Float
company_id_like: Float
company_id_ilike: Float
company_id_is_null: Boolean
company_id_in: [Float!]
company_id_not_in: [Float!]
company_id_lt: Float
company_id_lte: Float
company_id_gt: Float
company_id_gte: Float
company_id_range: FloatRange
company_id_contains: Float
company_id_contained_by: Float
company_id_overlap: Float
department_name: String
department_name_ne: String
department_name_like: String
department_name_ilike: String
department_name_is_null: Boolean
department_name_in: [String!]
department_name_not_in: [String!]
department_name_lt: String
department_name_lte: String
department_name_gt: String
department_name_gte: String
department_name_range: StringRange
department_name_contains: String
department_name_contained_by: String
department_name_overlap: String
and: [DepartmentFilter!]
or: [DepartmentFilter!]
not: DepartmentFilter
}
input EmployeeFilter {
employee_id: Float
employee_id_ne: Float
employee_id_like: Float
employee_id_ilike: Float
employee_id_is_null: Boolean
employee_id_in: [Float!]
employee_id_not_in: [Float!]
employee_id_lt: Float
employee_id_lte: Float
employee_id_gt: Float
employee_id_gte: Float
employee_id_range: FloatRange
employee_id_contains: Float
employee_id_contained_by: Float
employee_id_overlap: Float
department_id: Float
department_id_ne: Float
department_id_like: Float
department_id_ilike: Float
department_id_is_null: Boolean
department_id_in: [Float!]
department_id_not_in: [Float!]
department_id_lt: Float
department_id_lte: Float
department_id_gt: Float
department_id_gte: Float
department_id_range: FloatRange
department_id_contains: Float
department_id_contained_by: Float
department_id_overlap: Float
employee_name: String
employee_name_ne: String
employee_name_like: String
employee_name_ilike: String
employee_name_is_null: Boolean
employee_name_in: [String!]
employee_name_not_in: [String!]
employee_name_lt: String
employee_name_lte: String
employee_name_gt: String
employee_name_gte: String
employee_name_range: StringRange
employee_name_contains: String
employee_name_contained_by: String
employee_name_overlap: String
employee_email: String
employee_email_ne: String
employee_email_like: String
employee_email_ilike: String
employee_email_is_null: Boolean
employee_email_in: [String!]
employee_email_not_in: [String!]
employee_email_lt: String
employee_email_lte: String
employee_email_gt: String
employee_email_gte: String
employee_email_range: StringRange
employee_email_contains: String
employee_email_contained_by: String
employee_email_overlap: String
employee_age: Int
employee_age_ne: Int
employee_age_like: Int
employee_age_ilike: Int
employee_age_is_null: Boolean
employee_age_in: [Int!]
employee_age_not_in: [Int!]
employee_age_lt: Int
employee_age_lte: Int
employee_age_gt: Int
employee_age_gte: Int
employee_age_range: IntRange
employee_age_contains: Int
employee_age_contained_by: Int
employee_age_overlap: Int
employee_post: String
employee_post_ne: String
employee_post_like: String
employee_post_ilike: String
employee_post_is_null: Boolean
employee_post_in: [String!]
employee_post_not_in: [String!]
employee_post_lt: String
employee_post_lte: String
employee_post_gt: String
employee_post_gte: String
employee_post_range: StringRange
employee_post_contains: String
employee_post_contained_by: String
employee_post_overlap: String
employee_basic: Int
employee_basic_ne: Int
employee_basic_like: Int
employee_basic_ilike: Int
employee_basic_is_null: Boolean
employee_basic_in: [Int!]
employee_basic_not_in: [Int!]
employee_basic_lt: Int
employee_basic_lte: Int
employee_basic_gt: Int
employee_basic_gte: Int
employee_basic_range: IntRange
employee_basic_contains: Int
employee_basic_contained_by: Int
employee_basic_overlap: Int
joining_date: DateTime
joining_date_ne: DateTime
joining_date_like: DateTime
joining_date_ilike: DateTime
joining_date_is_null: Boolean
joining_date_in: [DateTime!]
joining_date_not_in: [DateTime!]
joining_date_lt: DateTime
joining_date_lte: DateTime
joining_date_gt: DateTime
joining_date_gte: DateTime
joining_date_range: DateTimeRange
joining_date_contains: DateTime
joining_date_contained_by: DateTime
joining_date_overlap: DateTime
status: Boolean
status_ne: Boolean
status_like: Boolean
status_ilike: Boolean
status_is_null: Boolean
status_in: [Boolean!]
status_not_in: [Boolean!]
status_lt: Boolean
status_lte: Boolean
status_gt: Boolean
status_gte: Boolean
status_range: BooleanRange
status_contains: Boolean
status_contained_by: Boolean
status_overlap: Boolean
and: [EmployeeFilter!]
or: [EmployeeFilter!]
not: EmployeeFilter
}
input FloatRange {
begin: Float!
end: Float!
}
input IntRange {
begin: Int!
end: Int!
}
scalar JSONString
type Mutation {
createemployee(input: employeeCreateMutationInput!): employeeCreateMutation
updateemployee(ids: [ID]!, input: employeeUpdateMutationInput!): employeeUpdateMutation
deleteemployee(ids: [ID]!): employeeDeleteMutation
createsales(input: salesCreateMutationInput!): salesCreateMutation
updatesales(ids: [ID]!, input: salesUpdateMutationInput!): salesUpdateMutation
deletesales(ids: [ID]!): salesDeleteMutation
createcompany(input: companyCreateMutationInput!): companyCreateMutation
updatecompany(ids: [ID]!, input: companyUpdateMutationInput!): companyUpdateMutation
deletecompany(ids: [ID]!): companyDeleteMutation
createdepartment(input: departmentCreateMutationInput!): departmentCreateMutation
updatedepartment(ids: [ID]!, input: departmentUpdateMutationInput!): departmentUpdateMutation
deletedepartment(ids: [ID]!): departmentDeleteMutation
}
interface Node {
id: ID!
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type Query {
node(id: ID!): Node
company(filters: CompanyFilter, page: Int, per_page: Int, sort: [companySortEnum] = [COMPANY_ID_ASC], before: String, after: String, first: Int, last: Int): companyConnection
department(filters: DepartmentFilter, page: Int, per_page: Int, sort: [departmentSortEnum] = [DEPARTMENT_ID_ASC], before: String, after: String, first: Int, last: Int): departmentConnection
employee(filters: EmployeeFilter, page: Int, per_page: Int, sort: [employeeSortEnum] = [EMPLOYEE_ID_ASC], before: String, after: String, first: Int, last: Int): employeeConnection
sales(filters: SalesFilter, page: Int, per_page: Int, sort: [salesSortEnum] = [SALES_ID_ASC], before: String, after: String, first: Int, last: Int): salesConnection
}
input SalesFilter {
sales_id: Float
sales_id_ne: Float
sales_id_like: Float
sales_id_ilike: Float
sales_id_is_null: Boolean
sales_id_in: [Float!]
sales_id_not_in: [Float!]
sales_id_lt: Float
sales_id_lte: Float
sales_id_gt: Float
sales_id_gte: Float
sales_id_range: FloatRange
sales_id_contains: Float
sales_id_contained_by: Float
sales_id_overlap: Float
product_name: String
product_name_ne: String
product_name_like: String
product_name_ilike: String
product_name_is_null: Boolean
product_name_in: [String!]
product_name_not_in: [String!]
product_name_lt: String
product_name_lte: String
product_name_gt: String
product_name_gte: String
product_name_range: StringRange
product_name_contains: String
product_name_contained_by: String
product_name_overlap: String
price: Float
price_ne: Float
price_like: Float
price_ilike: Float
price_is_null: Boolean
price_in: [Float!]
price_not_in: [Float!]
price_lt: Float
price_lte: Float
price_gt: Float
price_gte: Float
price_range: FloatRange
price_contains: Float
price_contained_by: Float
price_overlap: Float
customer_name: String
customer_name_ne: String
customer_name_like: String
customer_name_ilike: String
customer_name_is_null: Boolean
customer_name_in: [String!]
customer_name_not_in: [String!]
customer_name_lt: String
customer_name_lte: String
customer_name_gt: String
customer_name_gte: String
customer_name_range: StringRange
customer_name_contains: String
customer_name_contained_by: String
customer_name_overlap: String
sales_person_id: Float
sales_person_id_ne: Float
sales_person_id_like: Float
sales_person_id_ilike: Float
sales_person_id_is_null: Boolean
sales_person_id_in: [Float!]
sales_person_id_not_in: [Float!]
sales_person_id_lt: Float
sales_person_id_lte: Float
sales_person_id_gt: Float
sales_person_id_gte: Float
sales_person_id_range: FloatRange
sales_person_id_contains: Float
sales_person_id_contained_by: Float
sales_person_id_overlap: Float
sale_date: DateTime
sale_date_ne: DateTime
sale_date_like: DateTime
sale_date_ilike: DateTime
sale_date_is_null: Boolean
sale_date_in: [DateTime!]
sale_date_not_in: [DateTime!]
sale_date_lt: DateTime
sale_date_lte: DateTime
sale_date_gt: DateTime
sale_date_gte: DateTime
sale_date_range: DateTimeRange
sale_date_contains: DateTime
sale_date_contained_by: DateTime
sale_date_overlap: DateTime
and: [SalesFilter!]
or: [SalesFilter!]
not: SalesFilter
}
input StringRange {
begin: String!
end: String!
}
type company implements Node {
company_id: Float!
company_name: String!
id: ID!
pk: Int
}
type companyConnection {
pageInfo: PageInfo!
edges: [companyEdge]!
total_count: Int
edge_count: Int
custom(fields: [String] = [], table: [String] = [], innerJoin: [String] = [], leftJoin: [String] = [], where: [String] = [], group: [String] = [], having: [String] = [], sort: [String] = [], limit: [String] = [], offset: [String] = []): JSONString
}
type companyCreateMutation {
output: companyOutputType
ok: Boolean
message: String
}
input companyCreateMutationInput {
company_name: String!
}
type companyDeleteMutation {
output: companyOutputType
ok: Boolean
message: String
}
type companyEdge {
node: company
cursor: String!
}
type companyOutputType implements Node, DatabaseId {
company_id: Float!
company_name: String!
id: ID!
db_id: Int
}
enum companySortEnum {
COMPANY_ID_ASC
COMPANY_ID_DESC
COMPANY_NAME_ASC
COMPANY_NAME_DESC
}
type companyUpdateMutation {
output: companyOutputType
ok: Boolean
message: String
}
input companyUpdateMutationInput {
company_name: String!
}
type department implements Node {
department_id: Float!
company_id: Float!
department_name: String!
employee_collection(before: String, after: String, first: Int, last: Int): employeeOutputTypeConnection
id: ID!
pk: Int
}
type departmentConnection {
pageInfo: PageInfo!
edges: [departmentEdge]!
total_count: Int
edge_count: Int
custom(fields: [String] = [], table: [String] = [], innerJoin: [String] = [], leftJoin: [String] = [], where: [String] = [], group: [String] = [], having: [String] = [], sort: [String] = [], limit: [String] = [], offset: [String] = []): JSONString
}
type departmentCreateMutation {
output: departmentOutputType
ok: Boolean
message: String
}
input departmentCreateMutationInput {
company_id: Float!
department_name: String!
}
type departmentDeleteMutation {
output: departmentOutputType
ok: Boolean
message: String
}
type departmentEdge {
node: department
cursor: String!
}
type departmentOutputType implements Node, DatabaseId {
department_id: Float!
company_id: Float!
department_name: String!
employee_collection(before: String, after: String, first: Int, last: Int): employeeOutputTypeConnection
id: ID!
db_id: Int
}
enum departmentSortEnum {
DEPARTMENT_ID_ASC
DEPARTMENT_ID_DESC
COMPANY_ID_ASC
COMPANY_ID_DESC
DEPARTMENT_NAME_ASC
DEPARTMENT_NAME_DESC
}
type departmentUpdateMutation {
output: departmentOutputType
ok: Boolean
message: String
}
input departmentUpdateMutationInput {
company_id: Float!
department_name: String!
}
type employee implements Node {
employee_id: Float!
department_id: Float!
employee_name: String!
employee_email: String!
employee_age: Int!
employee_post: String!
employee_basic: Int!
joining_date: DateTime!
status: Boolean!
department: departmentOutputType
sales_collection(before: String, after: String, first: Int, last: Int): salesOutputTypeConnection
id: ID!
pk: Int
}
type employeeConnection {
pageInfo: PageInfo!
edges: [employeeEdge]!
total_count: Int
edge_count: Int
custom(fields: [String] = [], table: [String] = [], innerJoin: [String] = [], leftJoin: [String] = [], where: [String] = [], group: [String] = [], having: [String] = [], sort: [String] = [], limit: [String] = [], offset: [String] = []): JSONString
}
type employeeCreateMutation {
output: employeeOutputType
ok: Boolean
message: String
}
input employeeCreateMutationInput {
employee_name: String!
employee_email: String!
employee_age: Int!
employee_post: String!
employee_basic: Int!
joining_date: DateTime!
status: Boolean!
department_id: ID
}
type employeeDeleteMutation {
output: employeeOutputType
ok: Boolean
message: String
}
type employeeEdge {
node: employee
cursor: String!
}
type employeeOutputType implements Node, DatabaseId {
employee_id: Float!
department_id: Float!
employee_name: String!
employee_email: String!
employee_age: Int!
employee_post: String!
employee_basic: Int!
joining_date: DateTime!
status: Boolean!
department: departmentOutputType
sales_collection(before: String, after: String, first: Int, last: Int): salesOutputTypeConnection
id: ID!
db_id: Int
}
type employeeOutputTypeConnection {
pageInfo: PageInfo!
edges: [employeeOutputTypeEdge]!
}
type employeeOutputTypeEdge {
node: employeeOutputType
cursor: String!
}
enum employeeSortEnum {
EMPLOYEE_ID_ASC
EMPLOYEE_ID_DESC
DEPARTMENT_ID_ASC
DEPARTMENT_ID_DESC
EMPLOYEE_NAME_ASC
EMPLOYEE_NAME_DESC
EMPLOYEE_EMAIL_ASC
EMPLOYEE_EMAIL_DESC
EMPLOYEE_AGE_ASC
EMPLOYEE_AGE_DESC
EMPLOYEE_POST_ASC
EMPLOYEE_POST_DESC
EMPLOYEE_BASIC_ASC
EMPLOYEE_BASIC_DESC
JOINING_DATE_ASC
JOINING_DATE_DESC
STATUS_ASC
STATUS_DESC
}
type employeeUpdateMutation {
output: employeeOutputType
ok: Boolean
message: String
}
input employeeUpdateMutationInput {
employee_name: String!
employee_email: String!
employee_age: Int!
employee_post: String!
employee_basic: Int!
joining_date: DateTime!
status: Boolean!
department_id: ID
}
type sales implements Node {
sales_id: Float!
product_name: String!
price: Float!
customer_name: String!
sales_person_id: Float!
sale_date: DateTime!
employee: employeeOutputType
id: ID!
pk: Int
}
type salesConnection {
pageInfo: PageInfo!
edges: [salesEdge]!
total_count: Int
edge_count: Int
custom(fields: [String] = [], table: [String] = [], innerJoin: [String] = [], leftJoin: [String] = [], where: [String] = [], group: [String] = [], having: [String] = [], sort: [String] = [], limit: [String] = [], offset: [String] = []): JSONString
}
type salesCreateMutation {
output: salesOutputType
ok: Boolean
message: String
}
input salesCreateMutationInput {
product_name: String!
price: Float!
customer_name: String!
sale_date: DateTime!
sales_person_id: ID
}
type salesDeleteMutation {
output: salesOutputType
ok: Boolean
message: String
}
type salesEdge {
node: sales
cursor: String!
}
type salesOutputType implements Node, DatabaseId {
sales_id: Float!
product_name: String!
price: Float!
customer_name: String!
sales_person_id: Float!
sale_date: DateTime!
employee: employeeOutputType
id: ID!
db_id: Int
}
type salesOutputTypeConnection {
pageInfo: PageInfo!
edges: [salesOutputTypeEdge]!
}
type salesOutputTypeEdge {
node: salesOutputType
cursor: String!
}
enum salesSortEnum {
SALES_ID_ASC
SALES_ID_DESC
PRODUCT_NAME_ASC
PRODUCT_NAME_DESC
PRICE_ASC
PRICE_DESC
CUSTOMER_NAME_ASC
CUSTOMER_NAME_DESC
SALES_PERSON_ID_ASC
SALES_PERSON_ID_DESC
SALE_DATE_ASC
SALE_DATE_DESC
}
type salesUpdateMutation {
output: salesOutputType
ok: Boolean
message: String
}
input salesUpdateMutationInput {
product_name: String!
price: Float!
customer_name: String!
sale_date: DateTime!
sales_person_id: ID
}