-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgraphql.schema.json.graphql
3193 lines (3053 loc) · 104 KB
/
graphql.schema.json.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
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
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file was generated based on "graphql.schema.json". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
"An object with an ID"
interface Node {
"The id of the object."
id: ID!
"The Stage of an object"
stage: Stage!
}
type About implements Node {
"The time the document was created"
createdAt: DateTime!
description: String
"Get the document in other stages"
documentInStages(
"Decides if the current stage should be included or not"
includeCurrent: Boolean! = false,
"Decides if the documents should match the parent documents locale or should use the fallback order defined in the tree"
inheritLocale: Boolean! = false,
"Potential stages that should be returned"
stages: [Stage!]! = [PUBLISHED, DRAFT]
): [About!]!
"List of About versions"
history(
limit: Int! = 10,
skip: Int! = 0,
"This is optional and can be used to fetch the document version history for a specific stage instead of the current one"
stageOverride: Stage
): [Version!]!
"The unique identifier"
id: ID!
"The time the document was published. Null on documents in draft stage."
publishedAt: DateTime
"System stage field"
stage: Stage!
"The time the document was updated"
updatedAt: DateTime!
}
"A connection to a list of items."
type AboutConnection {
aggregate: Aggregate!
"A list of edges."
edges: [AboutEdge!]!
"Information to aid in pagination."
pageInfo: PageInfo!
}
"An edge in a connection."
type AboutEdge {
"A cursor for use in pagination."
cursor: String!
"The item at the end of the edge."
node: About!
}
type Aggregate {
count: Int!
}
type Artist implements Node {
artistName: String
bandcamp: String
"The time the document was created"
createdAt: DateTime!
"Get the document in other stages"
documentInStages(
"Decides if the current stage should be included or not"
includeCurrent: Boolean! = false,
"Decides if the documents should match the parent documents locale or should use the fallback order defined in the tree"
inheritLocale: Boolean! = false,
"Potential stages that should be returned"
stages: [Stage!]! = [PUBLISHED, DRAFT]
): [Artist!]!
"List of Artist versions"
history(
limit: Int! = 10,
skip: Int! = 0,
"This is optional and can be used to fetch the document version history for a specific stage instead of the current one"
stageOverride: Stage
): [Version!]!
iTunes: String
"The unique identifier"
id: ID!
"The time the document was published. Null on documents in draft stage."
publishedAt: DateTime
soundcloud: String
spotify: String
"System stage field"
stage: Stage!
"The time the document was updated"
updatedAt: DateTime!
}
"A connection to a list of items."
type ArtistConnection {
aggregate: Aggregate!
"A list of edges."
edges: [ArtistEdge!]!
"Information to aid in pagination."
pageInfo: PageInfo!
}
"An edge in a connection."
type ArtistEdge {
"A cursor for use in pagination."
cursor: String!
"The item at the end of the edge."
node: Artist!
}
"Asset system model"
type Asset implements Node {
"The time the document was created"
createdAt(
"Variation of DateTime field to return, allows value from base document, current localization, or combined by returning the newer value of both"
variation: SystemDateTimeFieldVariation! = COMBINED
): DateTime!
"Get the document in other stages"
documentInStages(
"Decides if the current stage should be included or not"
includeCurrent: Boolean! = false,
"Decides if the documents should match the parent documents locale or should use the fallback order defined in the tree"
inheritLocale: Boolean! = false,
"Potential stages that should be returned"
stages: [Stage!]! = [PUBLISHED, DRAFT]
): [Asset!]!
"The file name"
fileName: String!
"The file handle"
handle: String!
"The height of the file"
height: Float
"List of Asset versions"
history(
limit: Int! = 10,
skip: Int! = 0,
"This is optional and can be used to fetch the document version history for a specific stage instead of the current one"
stageOverride: Stage
): [Version!]!
"The unique identifier"
id: ID!
"System Locale field"
locale: Locale!
"Get the other localizations for this document"
localizations(
"Decides if the current locale should be included or not"
includeCurrent: Boolean! = false,
"Potential locales that should be returned"
locales: [Locale!]! = [en]
): [Asset!]!
"The mime type of the file"
mimeType: String
postImage(after: String, before: String, first: Int, last: Int, orderBy: PostOrderByInput, skip: Int, where: PostWhereInput): [Post!]!
"The time the document was published. Null on documents in draft stage."
publishedAt(
"Variation of DateTime field to return, allows value from base document, current localization, or combined by returning the newer value of both"
variation: SystemDateTimeFieldVariation! = COMBINED
): DateTime
"The file size"
size: Float
"System stage field"
stage: Stage!
"The time the document was updated"
updatedAt(
"Variation of DateTime field to return, allows value from base document, current localization, or combined by returning the newer value of both"
variation: SystemDateTimeFieldVariation! = COMBINED
): DateTime!
"Get the url for the asset with provided transformations applied."
url(transformation: AssetTransformationInput): String!
"The file width"
width: Float
}
"A connection to a list of items."
type AssetConnection {
aggregate: Aggregate!
"A list of edges."
edges: [AssetEdge!]!
"Information to aid in pagination."
pageInfo: PageInfo!
}
"An edge in a connection."
type AssetEdge {
"A cursor for use in pagination."
cursor: String!
"The item at the end of the edge."
node: Asset!
}
type BatchPayload {
"The number of nodes that have been affected by the Batch operation."
count: Long!
}
"Representing a color value comprising of HEX, RGBA and css color values"
type Color {
css: String!
hex: Hex!
rgba: RGBA!
}
type DocumentVersion {
createdAt: DateTime!
data: Json
id: ID!
revision: Int!
stage: Stage!
}
"Representing a geolocation point with latitude and longitude"
type Location {
distance(from: LocationInput!): Float!
latitude: Float!
longitude: Float!
}
type Mutation {
"Create one about"
createAbout(data: AboutCreateInput!): About
"Create one artist"
createArtist(data: ArtistCreateInput!): Artist
"Create one asset"
createAsset(data: AssetCreateInput!): Asset @deprecated(reason : "Asset mutations will be overhauled soon")
"Create one post"
createPost(data: PostCreateInput!): Post
"Create one release"
createRelease(data: ReleaseCreateInput!): Release
"Delete one about from _all_ existing stages. Returns deleted document."
deleteAbout(
"Document to delete"
where: AboutWhereUniqueInput!
): About
"Delete one artist from _all_ existing stages. Returns deleted document."
deleteArtist(
"Document to delete"
where: ArtistWhereUniqueInput!
): Artist
"Delete one asset from _all_ existing stages. Returns deleted document."
deleteAsset(
"Document to delete"
where: AssetWhereUniqueInput!
): Asset
"Delete many About documents"
deleteManyAbouts(
"Documents to delete"
where: AboutManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (deleteManyAboutsConnection)")
"Delete many About documents, return deleted documents"
deleteManyAboutsConnection(
after: ID,
before: ID,
first: Int,
last: Int,
skip: Int,
"Documents to delete"
where: AboutManyWhereInput
): AboutConnection!
"Delete many Artist documents"
deleteManyArtists(
"Documents to delete"
where: ArtistManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (deleteManyArtistsConnection)")
"Delete many Artist documents, return deleted documents"
deleteManyArtistsConnection(
after: ID,
before: ID,
first: Int,
last: Int,
skip: Int,
"Documents to delete"
where: ArtistManyWhereInput
): ArtistConnection!
"Delete many Asset documents"
deleteManyAssets(
"Documents to delete"
where: AssetManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (deleteManyAssetsConnection)")
"Delete many Asset documents, return deleted documents"
deleteManyAssetsConnection(
after: ID,
before: ID,
first: Int,
last: Int,
skip: Int,
"Documents to delete"
where: AssetManyWhereInput
): AssetConnection!
"Delete many Post documents"
deleteManyPosts(
"Documents to delete"
where: PostManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (deleteManyPostsConnection)")
"Delete many Post documents, return deleted documents"
deleteManyPostsConnection(
after: ID,
before: ID,
first: Int,
last: Int,
skip: Int,
"Documents to delete"
where: PostManyWhereInput
): PostConnection!
"Delete many Release documents"
deleteManyReleases(
"Documents to delete"
where: ReleaseManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (deleteManyReleasesConnection)")
"Delete many Release documents, return deleted documents"
deleteManyReleasesConnection(
after: ID,
before: ID,
first: Int,
last: Int,
skip: Int,
"Documents to delete"
where: ReleaseManyWhereInput
): ReleaseConnection!
"Delete one post from _all_ existing stages. Returns deleted document."
deletePost(
"Document to delete"
where: PostWhereUniqueInput!
): Post
"Delete one release from _all_ existing stages. Returns deleted document."
deleteRelease(
"Document to delete"
where: ReleaseWhereUniqueInput!
): Release
"Publish one about"
publishAbout(
"Publishing target stage"
to: [Stage!]! = [PUBLISHED],
"Document to publish"
where: AboutWhereUniqueInput!
): About
"Publish one artist"
publishArtist(
"Publishing target stage"
to: [Stage!]! = [PUBLISHED],
"Document to publish"
where: ArtistWhereUniqueInput!
): Artist
"Publish one asset"
publishAsset(
"Optional localizations to publish"
locales: [Locale!],
"Publish base document including default localization and relations, as well as selected additional localizations. Returns document in mutation stage."
publishBase: Boolean = true,
"Publishing target stage"
to: [Stage!]! = [PUBLISHED],
"Document to publish"
where: AssetWhereUniqueInput!
): Asset
"Publish many About documents"
publishManyAbouts(
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: AboutManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (publishManyAboutsConnection)")
"Publish many About documents"
publishManyAboutsConnection(
after: ID,
before: ID,
first: Int,
"Stage to find matching documents in"
from: Stage = DRAFT,
last: Int,
skip: Int,
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: AboutManyWhereInput
): AboutConnection!
"Publish many Artist documents"
publishManyArtists(
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: ArtistManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (publishManyArtistsConnection)")
"Publish many Artist documents"
publishManyArtistsConnection(
after: ID,
before: ID,
first: Int,
"Stage to find matching documents in"
from: Stage = DRAFT,
last: Int,
skip: Int,
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: ArtistManyWhereInput
): ArtistConnection!
"Publish many Asset documents"
publishManyAssets(
"Document localizations to publish"
locales: [Locale!],
"Whether to publish the base document and default localization"
publishBase: Boolean = true,
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: AssetManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (publishManyAssetsConnection)")
"Publish many Asset documents"
publishManyAssetsConnection(
after: ID,
before: ID,
first: Int,
"Stage to find matching documents in"
from: Stage = DRAFT,
last: Int,
"Document localizations to publish"
locales: [Locale!],
"Whether to publish the base document and default localization"
publishBase: Boolean = true,
skip: Int,
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: AssetManyWhereInput
): AssetConnection!
"Publish many Post documents"
publishManyPosts(
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: PostManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (publishManyPostsConnection)")
"Publish many Post documents"
publishManyPostsConnection(
after: ID,
before: ID,
first: Int,
"Stage to find matching documents in"
from: Stage = DRAFT,
last: Int,
skip: Int,
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: PostManyWhereInput
): PostConnection!
"Publish many Release documents"
publishManyReleases(
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: ReleaseManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (publishManyReleasesConnection)")
"Publish many Release documents"
publishManyReleasesConnection(
after: ID,
before: ID,
first: Int,
"Stage to find matching documents in"
from: Stage = DRAFT,
last: Int,
skip: Int,
"Stages to publish documents to"
to: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage to be published"
where: ReleaseManyWhereInput
): ReleaseConnection!
"Publish one post"
publishPost(
"Publishing target stage"
to: [Stage!]! = [PUBLISHED],
"Document to publish"
where: PostWhereUniqueInput!
): Post
"Publish one release"
publishRelease(
"Publishing target stage"
to: [Stage!]! = [PUBLISHED],
"Document to publish"
where: ReleaseWhereUniqueInput!
): Release
"Unpublish one about from selected stages. Unpublish either the complete document with its relations, localizations and base data or specific localizations only."
unpublishAbout(
"Stages to unpublish document from"
from: [Stage!]! = [PUBLISHED],
"Document to unpublish"
where: AboutWhereUniqueInput!
): About
"Unpublish one artist from selected stages. Unpublish either the complete document with its relations, localizations and base data or specific localizations only."
unpublishArtist(
"Stages to unpublish document from"
from: [Stage!]! = [PUBLISHED],
"Document to unpublish"
where: ArtistWhereUniqueInput!
): Artist
"Unpublish one asset from selected stages. Unpublish either the complete document with its relations, localizations and base data or specific localizations only."
unpublishAsset(
"Stages to unpublish document from"
from: [Stage!]! = [PUBLISHED],
"Optional locales to unpublish. Unpublishing the default locale will completely remove the document from the selected stages"
locales: [Locale!],
"Unpublish complete document including default localization and relations from stages. Can be disabled."
unpublishBase: Boolean = true,
"Document to unpublish"
where: AssetWhereUniqueInput!
): Asset
"Unpublish many About documents"
unpublishManyAbouts(
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage"
where: AboutManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (unpublishManyAboutsConnection)")
"Find many About documents that match criteria in specified stage and unpublish from target stages"
unpublishManyAboutsConnection(
after: ID,
before: ID,
first: Int,
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
last: Int,
skip: Int,
"Stage to find matching documents in"
stage: Stage = DRAFT,
"Identifies documents in draft stage"
where: AboutManyWhereInput
): AboutConnection!
"Unpublish many Artist documents"
unpublishManyArtists(
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage"
where: ArtistManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (unpublishManyArtistsConnection)")
"Find many Artist documents that match criteria in specified stage and unpublish from target stages"
unpublishManyArtistsConnection(
after: ID,
before: ID,
first: Int,
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
last: Int,
skip: Int,
"Stage to find matching documents in"
stage: Stage = DRAFT,
"Identifies documents in draft stage"
where: ArtistManyWhereInput
): ArtistConnection!
"Unpublish many Asset documents"
unpublishManyAssets(
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
"Locales to unpublish"
locales: [Locale!],
"Whether to unpublish the base document and default localization"
unpublishBase: Boolean = true,
"Identifies documents in each stage"
where: AssetManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (unpublishManyAssetsConnection)")
"Find many Asset documents that match criteria in specified stage and unpublish from target stages"
unpublishManyAssetsConnection(
after: ID,
before: ID,
first: Int,
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
last: Int,
"Locales to unpublish"
locales: [Locale!],
skip: Int,
"Stage to find matching documents in"
stage: Stage = DRAFT,
"Whether to unpublish the base document and default localization"
unpublishBase: Boolean = true,
"Identifies documents in draft stage"
where: AssetManyWhereInput
): AssetConnection!
"Unpublish many Post documents"
unpublishManyPosts(
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage"
where: PostManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (unpublishManyPostsConnection)")
"Find many Post documents that match criteria in specified stage and unpublish from target stages"
unpublishManyPostsConnection(
after: ID,
before: ID,
first: Int,
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
last: Int,
skip: Int,
"Stage to find matching documents in"
stage: Stage = DRAFT,
"Identifies documents in draft stage"
where: PostManyWhereInput
): PostConnection!
"Unpublish many Release documents"
unpublishManyReleases(
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
"Identifies documents in each stage"
where: ReleaseManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (unpublishManyReleasesConnection)")
"Find many Release documents that match criteria in specified stage and unpublish from target stages"
unpublishManyReleasesConnection(
after: ID,
before: ID,
first: Int,
"Stages to unpublish documents from"
from: [Stage!]! = [PUBLISHED],
last: Int,
skip: Int,
"Stage to find matching documents in"
stage: Stage = DRAFT,
"Identifies documents in draft stage"
where: ReleaseManyWhereInput
): ReleaseConnection!
"Unpublish one post from selected stages. Unpublish either the complete document with its relations, localizations and base data or specific localizations only."
unpublishPost(
"Stages to unpublish document from"
from: [Stage!]! = [PUBLISHED],
"Document to unpublish"
where: PostWhereUniqueInput!
): Post
"Unpublish one release from selected stages. Unpublish either the complete document with its relations, localizations and base data or specific localizations only."
unpublishRelease(
"Stages to unpublish document from"
from: [Stage!]! = [PUBLISHED],
"Document to unpublish"
where: ReleaseWhereUniqueInput!
): Release
"Update one about"
updateAbout(data: AboutUpdateInput!, where: AboutWhereUniqueInput!): About
"Update one artist"
updateArtist(data: ArtistUpdateInput!, where: ArtistWhereUniqueInput!): Artist
"Update one asset"
updateAsset(data: AssetUpdateInput!, where: AssetWhereUniqueInput!): Asset
"Update many abouts"
updateManyAbouts(
"Updates to document content"
data: AboutUpdateManyInput!,
"Documents to apply update on"
where: AboutManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (updateManyAboutsConnection)")
"Update many About documents"
updateManyAboutsConnection(
after: ID,
before: ID,
"Updates to document content"
data: AboutUpdateManyInput!,
first: Int,
last: Int,
skip: Int,
"Documents to apply update on"
where: AboutManyWhereInput
): AboutConnection!
"Update many artists"
updateManyArtists(
"Updates to document content"
data: ArtistUpdateManyInput!,
"Documents to apply update on"
where: ArtistManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (updateManyArtistsConnection)")
"Update many Artist documents"
updateManyArtistsConnection(
after: ID,
before: ID,
"Updates to document content"
data: ArtistUpdateManyInput!,
first: Int,
last: Int,
skip: Int,
"Documents to apply update on"
where: ArtistManyWhereInput
): ArtistConnection!
"Update many assets"
updateManyAssets(
"Updates to document content"
data: AssetUpdateManyInput!,
"Documents to apply update on"
where: AssetManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (updateManyAssetsConnection)")
"Update many Asset documents"
updateManyAssetsConnection(
after: ID,
before: ID,
"Updates to document content"
data: AssetUpdateManyInput!,
first: Int,
last: Int,
skip: Int,
"Documents to apply update on"
where: AssetManyWhereInput
): AssetConnection!
"Update many posts"
updateManyPosts(
"Updates to document content"
data: PostUpdateManyInput!,
"Documents to apply update on"
where: PostManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (updateManyPostsConnection)")
"Update many Post documents"
updateManyPostsConnection(
after: ID,
before: ID,
"Updates to document content"
data: PostUpdateManyInput!,
first: Int,
last: Int,
skip: Int,
"Documents to apply update on"
where: PostManyWhereInput
): PostConnection!
"Update many releases"
updateManyReleases(
"Updates to document content"
data: ReleaseUpdateManyInput!,
"Documents to apply update on"
where: ReleaseManyWhereInput
): BatchPayload! @deprecated(reason : "Please use the new paginated many mutation (updateManyReleasesConnection)")
"Update many Release documents"
updateManyReleasesConnection(
after: ID,
before: ID,
"Updates to document content"
data: ReleaseUpdateManyInput!,
first: Int,
last: Int,
skip: Int,
"Documents to apply update on"
where: ReleaseManyWhereInput
): ReleaseConnection!
"Update one post"
updatePost(data: PostUpdateInput!, where: PostWhereUniqueInput!): Post
"Update one release"
updateRelease(data: ReleaseUpdateInput!, where: ReleaseWhereUniqueInput!): Release
"Upsert one about"
upsertAbout(upsert: AboutUpsertInput!, where: AboutWhereUniqueInput!): About
"Upsert one artist"
upsertArtist(upsert: ArtistUpsertInput!, where: ArtistWhereUniqueInput!): Artist
"Upsert one asset"
upsertAsset(upsert: AssetUpsertInput!, where: AssetWhereUniqueInput!): Asset
"Upsert one post"
upsertPost(upsert: PostUpsertInput!, where: PostWhereUniqueInput!): Post
"Upsert one release"
upsertRelease(upsert: ReleaseUpsertInput!, where: ReleaseWhereUniqueInput!): Release
}
"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!
"Number of items in the current page."
pageSize: Int
"When paginating backwards, the cursor to continue."
startCursor: String
}
type Post implements Node {
category: Categories!
content: RichText!
"The time the document was created"
createdAt: DateTime!
credits: RichText
"Get the document in other stages"
documentInStages(
"Decides if the current stage should be included or not"
includeCurrent: Boolean! = false,
"Decides if the documents should match the parent documents locale or should use the fallback order defined in the tree"
inheritLocale: Boolean! = false,
"Potential stages that should be returned"
stages: [Stage!]! = [PUBLISHED, DRAFT]
): [Post!]!
"List of Post versions"
history(
limit: Int! = 10,
skip: Int! = 0,
"This is optional and can be used to fetch the document version history for a specific stage instead of the current one"
stageOverride: Stage
): [Version!]!
"The unique identifier"
id: ID!
iframe: String
image: Asset
link: String!
"The time the document was published. Null on documents in draft stage."
publishedAt: DateTime
"Example Format: March 20th 2020"
publishedDate: String
"System stage field"
stage: Stage!
subtitle: String
title: String!
tracklist: RichText
"The time the document was updated"
updatedAt: DateTime!
}
"A connection to a list of items."
type PostConnection {
aggregate: Aggregate!
"A list of edges."
edges: [PostEdge!]!
"Information to aid in pagination."
pageInfo: PageInfo!
}
"An edge in a connection."
type PostEdge {
"A cursor for use in pagination."
cursor: String!
"The item at the end of the edge."
node: Post!
}
type Query {
"Retrieve a single about"
about(stage: Stage! = PUBLISHED, where: AboutWhereUniqueInput!): About
"Retrieve document version"
aboutVersion(where: VersionWhereInput!): DocumentVersion
"Retrieve multiple abouts"
abouts(after: String, before: String, first: Int, last: Int, orderBy: AboutOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: AboutWhereInput): [About!]!
"Retrieve multiple abouts using the Relay connection interface"
aboutsConnection(after: String, before: String, first: Int, last: Int, orderBy: AboutOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: AboutWhereInput): AboutConnection!
"Retrieve a single artist"
artist(stage: Stage! = PUBLISHED, where: ArtistWhereUniqueInput!): Artist
"Retrieve document version"
artistVersion(where: VersionWhereInput!): DocumentVersion
"Retrieve multiple artists"
artists(after: String, before: String, first: Int, last: Int, orderBy: ArtistOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: ArtistWhereInput): [Artist!]!
"Retrieve multiple artists using the Relay connection interface"
artistsConnection(after: String, before: String, first: Int, last: Int, orderBy: ArtistOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: ArtistWhereInput): ArtistConnection!
"Retrieve a single asset"
asset(
"First locale matched will be used based on the order of this input"
locales: [Locale!]! = [en],
stage: Stage! = PUBLISHED,
where: AssetWhereUniqueInput!
): Asset
"Retrieve document version"
assetVersion(where: VersionWhereInput!): DocumentVersion
"Retrieve multiple assets"
assets(
after: String,
before: String,
first: Int,
last: Int,
"First locale matched will be used based on the order of this input"
locales: [Locale!]! = [en],
orderBy: AssetOrderByInput,
skip: Int,
stage: Stage! = PUBLISHED,
where: AssetWhereInput
): [Asset!]!
"Retrieve multiple assets using the Relay connection interface"
assetsConnection(
after: String,
before: String,
first: Int,
last: Int,
"First locale matched will be used based on the order of this input"
locales: [Locale!]! = [en],
orderBy: AssetOrderByInput,
skip: Int,
stage: Stage! = PUBLISHED,
where: AssetWhereInput
): AssetConnection!
"Fetches an object given its ID"
node(
"The ID of an object"
id: ID!,
"First locale matched will be used based on the order of this input"
locales: [Locale!]! = [en],
stage: Stage! = PUBLISHED
): Node
"Retrieve a single post"
post(stage: Stage! = PUBLISHED, where: PostWhereUniqueInput!): Post
"Retrieve document version"
postVersion(where: VersionWhereInput!): DocumentVersion
"Retrieve multiple posts"
posts(after: String, before: String, first: Int, last: Int, orderBy: PostOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: PostWhereInput): [Post!]!
"Retrieve multiple posts using the Relay connection interface"
postsConnection(after: String, before: String, first: Int, last: Int, orderBy: PostOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: PostWhereInput): PostConnection!
"Retrieve a single release"
release(stage: Stage! = PUBLISHED, where: ReleaseWhereUniqueInput!): Release
"Retrieve document version"
releaseVersion(where: VersionWhereInput!): DocumentVersion
"Retrieve multiple releases"
releases(after: String, before: String, first: Int, last: Int, orderBy: ReleaseOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: ReleaseWhereInput): [Release!]!
"Retrieve multiple releases using the Relay connection interface"
releasesConnection(after: String, before: String, first: Int, last: Int, orderBy: ReleaseOrderByInput, skip: Int, stage: Stage! = PUBLISHED, where: ReleaseWhereInput): ReleaseConnection!
}
"Representing a RGBA color value: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba()"
type RGBA {
a: RGBATransparency!
b: RGBAHue!
g: RGBAHue!
r: RGBAHue!
}
type Release implements Node {
"The time the document was created"
createdAt: DateTime!
"Get the document in other stages"
documentInStages(
"Decides if the current stage should be included or not"
includeCurrent: Boolean! = false,
"Decides if the documents should match the parent documents locale or should use the fallback order defined in the tree"
inheritLocale: Boolean! = false,
"Potential stages that should be returned"
stages: [Stage!]! = [PUBLISHED, DRAFT]
): [Release!]!
"List of Release versions"
history(
limit: Int! = 10,
skip: Int! = 0,
"This is optional and can be used to fetch the document version history for a specific stage instead of the current one"
stageOverride: Stage
): [Version!]!
"The unique identifier"
id: ID!
"The time the document was published. Null on documents in draft stage."
publishedAt: DateTime
"System stage field"
stage: Stage!
subtitle: String
title: String
"The time the document was updated"
updatedAt: DateTime!
}
"A connection to a list of items."
type ReleaseConnection {
aggregate: Aggregate!
"A list of edges."
edges: [ReleaseEdge!]!
"Information to aid in pagination."
pageInfo: PageInfo!
}
"An edge in a connection."
type ReleaseEdge {
"A cursor for use in pagination."
cursor: String!
"The item at the end of the edge."
node: Release!
}
"Custom type representing a rich text value comprising of raw rich text ast, html, markdown and text values"
type RichText {
"Returns HTMl representation"
html: String!
"Returns Markdown representation"
markdown: String!
"Returns AST representation"
raw: RichTextAST!
"Returns plain-text contents of RichText"
text: String!
}
type Version {
createdAt: DateTime!
id: ID!
revision: Int!
stage: Stage!
}
enum AboutOrderByInput {
createdAt_ASC
createdAt_DESC
description_ASC
description_DESC
id_ASC
id_DESC
publishedAt_ASC
publishedAt_DESC
updatedAt_ASC
updatedAt_DESC
}
enum ArtistOrderByInput {
artistName_ASC
artistName_DESC
bandcamp_ASC
bandcamp_DESC
createdAt_ASC
createdAt_DESC