This repository was archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
8350 lines (6404 loc) · 209 KB
/
schema.graphql
File metadata and controls
8350 lines (6404 loc) · 209 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
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
schema {
query: RootQuery
mutation: RootMutation
}
"""
Avatars are profile images for users. WordPress by default uses the Gravatar service to host and fetch avatars from.
"""
type Avatar {
"""
URL for the default image or a default type. Accepts '404' (return a
404 instead of a default image), 'retro' (8bit),
'monsterid' (monster), 'wavatar' (cartoon face),
'indenticon' (the 'quilt'), 'mystery',
'mm', or 'mysteryman' (The Oyster Man), 'blank'
(transparent GIF), or 'gravatar_default' (the Gravatar logo).
"""
default: String
"""HTML attributes to insert in the IMG element. Is not sanitized."""
extraAttr: String
"""Whether to always show the default image, never the Gravatar."""
forceDefault: Boolean
"""Whether the avatar was successfully found."""
foundAvatar: Boolean
"""Height of the avatar image."""
height: Int
"""Whether the object is restricted from the current viewer"""
isRestricted: Boolean
"""
What rating to display avatars up to. Accepts 'G', 'PG',
'R', 'X', and are judged in that order.
"""
rating: String
"""Type of url scheme to use. Typically HTTP vs. HTTPS."""
scheme: String
"""
The size of the avatar in pixels. A value of 96 will match a 96px x 96px gravatar image.
"""
size: Int
"""URL for the gravatar image source."""
url: String
"""Width of the avatar image."""
width: Int
}
"""
What rating to display avatars up to. Accepts 'G', 'PG', 'R', 'X', and are
judged in that order. Default is the value of the 'avatar_rating' option
"""
enum AvatarRatingEnum {
G
PG
R
X
}
"""The category type"""
type Category implements Node, TermNode, UniformResourceIdentifiable {
"""The ancestors of the object"""
ancestors: [Category]
"""The id field matches the WP_Post->ID field."""
categoryId: Int @deprecated(reason: "Deprecated in favor of databaseId")
"""Connection between the category type and the category type"""
children(
"""The number of items to return after the referenced "after" cursor"""
first: Int
last: Int
"""
Cursor used along with the "first" argument to reference where in the dataset to get data
"""
after: String
"""
Cursor used along with the "last" argument to reference where in the dataset to get data
"""
before: String
"""Arguments for filtering the connection"""
where: CategoryToCategoryConnectionWhereArgs
): CategoryToCategoryConnection
"""The number of objects connected to the object"""
count: Int
"""Identifies the primary key from the database."""
databaseId: Int!
"""The description of the object"""
description: String
"""The globally unique ID for the object"""
id: ID!
"""Whether the object is restricted from the current viewer"""
isRestricted: Boolean
"""The link to the term"""
link: String
"""The human friendly name of the object."""
name: String
"""The parent object"""
parent: Category
"""Connection between the category type and the category type"""
posts(
"""The number of items to return after the referenced "after" cursor"""
first: Int
last: Int
"""
Cursor used along with the "first" argument to reference where in the dataset to get data
"""
after: String
"""
Cursor used along with the "last" argument to reference where in the dataset to get data
"""
before: String
"""Arguments for filtering the connection"""
where: CategoryToPostConnectionWhereArgs
): CategoryToPostConnection
"""An alphanumeric identifier for the object unique to its type."""
slug: String
"""Connection between the category type and the category type"""
taxonomy: CategoryToTaxonomyConnection
"""The ID of the term group that this term object belongs to"""
termGroupId: Int
"""The taxonomy ID that the object is associated with"""
termTaxonomyId: Int
"""The unique resource identifier path"""
uri: String!
}
"""
The Type of Identifier used to fetch a single resource. Default is ID.
"""
enum CategoryIdType {
"""The Database ID for the node"""
DATABASE_ID
"""The hashed Global ID"""
ID
"""The name of the node"""
NAME
"""Url friendly name of the node"""
SLUG
"""The URI for the node"""
URI
}
"""Connection between the category type and the category type"""
type CategoryToCategoryConnection {
"""Edges for the CategoryToCategoryConnection connection"""
edges: [CategoryToCategoryConnectionEdge]
"""The nodes of the connection, without the edges"""
nodes: [Category]
"""Information about pagination in a connection."""
pageInfo: WPPageInfo
}
"""An edge in a connection"""
type CategoryToCategoryConnectionEdge {
"""A cursor for use in pagination"""
cursor: String
"""The item at the end of the edge"""
node: Category
}
"""Arguments for filtering the CategoryToCategoryConnection connection"""
input CategoryToCategoryConnectionWhereArgs {
"""
Unique cache key to be produced when this query is stored in an object cache. Default is 'core'.
"""
cacheDomain: String
"""
Term ID to retrieve child terms of. If multiple taxonomies are passed, $child_of is ignored. Default 0.
"""
childOf: Int
"""
True to limit results to terms that have no children. This parameter has no
effect on non-hierarchical taxonomies. Default false.
"""
childless: Boolean
"""
Retrieve terms where the description is LIKE the input value. Default empty.
"""
descriptionLike: String
"""
Array of term ids to exclude. If $include is non-empty, $exclude is ignored. Default empty array.
"""
exclude: [ID]
"""
Array of term ids to exclude along with all of their descendant terms. If
$include is non-empty, $exclude_tree is ignored. Default empty array.
"""
excludeTree: [ID]
"""
Whether to hide terms not assigned to any posts. Accepts true or false. Default false
"""
hideEmpty: Boolean
"""
Whether to include terms that have non-empty descendants (even if $hide_empty is set to true). Default true.
"""
hierarchical: Boolean
"""Array of term ids to include. Default empty array."""
include: [ID]
"""Array of names to return term(s) for. Default empty."""
name: [String]
"""Retrieve terms where the name is LIKE the input value. Default empty."""
nameLike: String
"""
Array of object IDs. Results will be limited to terms associated with these objects.
"""
objectIds: [ID]
"""Field(s) to order terms by. Defaults to 'name'."""
orderby: TermObjectsConnectionOrderbyEnum
"""
Whether to pad the quantity of a term's children in the quantity of each term's "count" object variable. Default false.
"""
padCounts: Boolean
"""Parent term ID to retrieve direct-child terms of. Default empty."""
parent: Int
"""
Search criteria to match terms. Will be SQL-formatted with wildcards before and after. Default empty.
"""
search: String
"""
Default false. If true, only the items connected to the source item will be
returned. If false, all items will be returned regardless of connection to the
"""
shouldOnlyIncludeConnectedItems: Boolean
"""
Default false. If true, the connection will be output in a flat list instead
of the hierarchical list. So child terms will be output in the same level as
the parent terms
"""
shouldOutputInFlatList: Boolean
"""Array of slugs to return term(s) for. Default empty."""
slug: [String]
"""Array of term taxonomy IDs, to match when querying terms."""
termTaxonomId: [ID]
"""Whether to prime meta caches for matched terms. Default true."""
updateTermMetaCache: Boolean
}
"""Connection between the category type and the category type"""
type CategoryToPostConnection {
"""Edges for the CategoryToPostConnection connection"""
edges: [CategoryToPostConnectionEdge]
"""The nodes of the connection, without the edges"""
nodes: [Post]
"""Information about pagination in a connection."""
pageInfo: WPPageInfo
}
"""An edge in a connection"""
type CategoryToPostConnectionEdge {
"""A cursor for use in pagination"""
cursor: String
"""The item at the end of the edge"""
node: Post
}
"""Arguments for filtering the CategoryToPostConnection connection"""
input CategoryToPostConnectionWhereArgs {
"""
The user that's connected as the author of the object. Use the userId for the author object.
"""
author: Int
"""Find objects connected to author(s) in the array of author's userIds"""
authorIn: [ID]
"""Find objects connected to the author by the author's nicename"""
authorName: String
"""
Find objects NOT connected to author(s) in the array of author's userIds
"""
authorNotIn: [ID]
"""Category ID"""
categoryId: Int
"""
Array of category IDs, used to display objects from one category OR another
"""
categoryIn: [ID]
"""Use Category Slug"""
categoryName: String
"""
Array of category IDs, used to display objects from one category OR another
"""
categoryNotIn: [ID]
"""Filter the connection based on dates"""
dateQuery: DateQueryInput
"""
True for objects with passwords; False for objects without passwords; null for all objects with or without passwords
"""
hasPassword: Boolean
"""Specific ID of the object"""
id: Int
"""Array of IDs for the objects to retrieve"""
in: [ID]
"""Get objects with a specific mimeType property"""
mimeType: MimeTypeEnum
"""Slug / post_name of the object"""
name: String
"""Specify objects to retrieve. Use slugs"""
nameIn: [String]
"""
Specify IDs NOT to retrieve. If this is used in the same query as "in", it will be ignored
"""
notIn: [ID]
"""What paramater to use to order the objects by."""
orderby: [PostObjectsConnectionOrderbyInput]
"""Use ID to return only children. Use 0 to return only top-level items"""
parent: String
"""Specify objects whose parent is in an array"""
parentIn: [ID]
"""Specify posts whose parent is not in an array"""
parentNotIn: [ID]
"""Show posts with a specific password."""
password: String
"""Show Posts based on a keyword search"""
search: String
stati: [PostStatusEnum]
status: PostStatusEnum
"""Tag Slug"""
tag: String
"""Use Tag ID"""
tagId: String
"""Array of tag IDs, used to display objects from one tag OR another"""
tagIn: [ID]
"""Array of tag IDs, used to display objects from one tag OR another"""
tagNotIn: [ID]
"""Array of tag slugs, used to display objects from one tag OR another"""
tagSlugAnd: [String]
"""Array of tag slugs, used to exclude objects in specified tags"""
tagSlugIn: [String]
"""Title of the object"""
title: String
}
"""Connection between the category type and the category type"""
type CategoryToTaxonomyConnection {
"""The nodes of the connection, without the edges"""
node: Taxonomy
}
"""A Comment object"""
type Comment implements Node {
"""
User agent used to post the comment. This field is equivalent to
WP_Comment->comment_agent and the value matching the
"comment_agent" column in SQL.
"""
agent: String
"""
The approval status of the comment. This field is equivalent to
WP_Comment->comment_approved and the value matching the
"comment_approved" column in SQL.
"""
approved: Boolean
"""The author of the comment"""
author: CommentAuthorUnion
"""
IP address for the author. This field is equivalent to
WP_Comment->comment_author_IP and the value matching the
"comment_author_IP" column in SQL.
"""
authorIp: String
"""Connection between the Comment type and the Comment type"""
children(
"""The number of items to return after the referenced "after" cursor"""
first: Int
last: Int
"""
Cursor used along with the "first" argument to reference where in the dataset to get data
"""
after: String
"""
Cursor used along with the "last" argument to reference where in the dataset to get data
"""
before: String
"""Arguments for filtering the connection"""
where: CommentToCommentConnectionWhereArgs
): CommentToCommentConnection
"""ID for the comment, unique among comments."""
commentId: Int
"""The object the comment was added to"""
commentedOn: PostObjectUnion
"""
Content of the comment. This field is equivalent to
WP_Comment->comment_content and the value matching the
"comment_content" column in SQL.
"""
content(
"""Format of the field output"""
format: PostObjectFieldFormatEnum
): String
"""
Date the comment was posted in local time. This field is equivalent to
WP_Comment->date and the value matching the "date" column in SQL.
"""
date: String
"""
Date the comment was posted in GMT. This field is equivalent to
WP_Comment->date_gmt and the value matching the "date_gmt" column
"""
dateGmt: String
"""The globally unique identifier for the comment object"""
id: ID!
"""Whether the object is restricted from the current viewer"""
isRestricted: Boolean
"""
Karma value for the comment. This field is equivalent to
WP_Comment->comment_karma and the value matching the
"comment_karma" column in SQL.
"""
karma: Int
"""
Parent comment of current comment. This field is equivalent to the WP_Comment
instance matching the WP_Comment->comment_parent ID.
"""
parent: Comment
"""
Type of comment. This field is equivalent to WP_Comment->comment_type and
the value matching the "comment_type" column in SQL.
"""
type: String
}
"""A Comment Author object"""
type CommentAuthor implements Node {
"""The email for the comment author"""
email: String
"""The globally unique identifier for the comment author object"""
id: ID!
"""Whether the object is restricted from the current viewer"""
isRestricted: Boolean
"""The name for the comment author."""
name: String
"""The url the comment author."""
url: String
}
union CommentAuthorUnion = User | CommentAuthor
"""Connection between the Comment type and the Comment type"""
type CommentToCommentConnection {
"""Edges for the CommentToCommentConnection connection"""
edges: [CommentToCommentConnectionEdge]
"""The nodes of the connection, without the edges"""
nodes: [Comment]
"""Information about pagination in a connection."""
pageInfo: WPPageInfo
}
"""An edge in a connection"""
type CommentToCommentConnectionEdge {
"""A cursor for use in pagination"""
cursor: String
"""The item at the end of the edge"""
node: Comment
}
"""Arguments for filtering the CommentToCommentConnection connection"""
input CommentToCommentConnectionWhereArgs {
"""Comment author email address."""
authorEmail: String
"""Array of author IDs to include comments for."""
authorIn: [ID]
"""Array of author IDs to exclude comments for."""
authorNotIn: [ID]
"""Comment author URL."""
authorUrl: String
"""Array of comment IDs to include."""
commentIn: [ID]
"""
Array of IDs of users whose unapproved comments will be returned by the
query regardless of status.
"""
commentNotIn: [ID]
"""Include comments of a given type."""
commentType: String
"""Include comments from a given array of comment types."""
commentTypeIn: [String]
"""Exclude comments from a given array of comment types."""
commentTypeNotIn: String
"""Content object author ID to limit results by."""
contentAuthor: [ID]
"""Array of author IDs to retrieve comments for."""
contentAuthorIn: [ID]
"""Array of author IDs *not* to retrieve comments for."""
contentAuthorNotIn: [ID]
"""
Limit results to those affiliated with a given content object
ID.
"""
contentId: ID
"""
Array of content object IDs to include affiliated comments
for.
"""
contentIdIn: [ID]
"""
Array of content object IDs to exclude affiliated comments
for.
"""
contentIdNotIn: [ID]
"""Content object name to retrieve affiliated comments for."""
contentName: String
"""Content Object parent ID to retrieve affiliated comments for."""
contentParent: Int
"""
Array of content object statuses to retrieve affiliated comments for.
Pass 'any' to match any value.
"""
contentStatus: [PostStatusEnum]
"""
Content object type or array of types to retrieve affiliated comments for. Pass 'any' to match any value.
"""
contentType: [ContentTypeEnum]
"""
Array of IDs or email addresses of users whose unapproved comments will be
returned by the query regardless of $status. Default empty
"""
includeUnapproved: [ID]
"""Karma score to retrieve matching comments for."""
karma: Int
"""The cardinality of the order of the connection"""
order: OrderEnum
"""Field to order the comments by."""
orderby: CommentsConnectionOrderbyEnum
"""Parent ID of comment to retrieve children of."""
parent: Int
"""Array of parent IDs of comments to retrieve children for."""
parentIn: [ID]
"""
Array of parent IDs of comments *not* to retrieve children
for.
"""
parentNotIn: [ID]
"""Search term(s) to retrieve matching comments for."""
search: String
"""Comment status to limit results by."""
status: String
"""Include comments for a specific user ID."""
userId: ID
}
"""Options for ordering the connection"""
enum CommentsConnectionOrderbyEnum {
COMMENT_AGENT
COMMENT_APPROVED
COMMENT_AUTHOR
COMMENT_AUTHOR_EMAIL
COMMENT_AUTHOR_IP
COMMENT_AUTHOR_URL
COMMENT_CONTENT
COMMENT_DATE
COMMENT_DATE_GMT
COMMENT_ID
COMMENT_IN
COMMENT_KARMA
COMMENT_PARENT
COMMENT_POST_ID
COMMENT_TYPE
USER_ID
}
"""Nodes used to manage content"""
interface ContentNode {
"""The ID of the object in the database."""
databaseId: Int!
"""Post publishing date."""
date: String
"""The publishing date set in GMT."""
dateGmt: String
"""The desired slug of the post"""
desiredSlug: String
"""The user that most recently edited the object"""
editLast: User
"""
If a user has edited the object within the past 15 seconds, this will return
the user and the time they last edited. Null if the edit lock doesn't exist or
is greater than 15 seconds
"""
editLock: EditLock
"""The RSS enclosure for the object"""
enclosure: String
"""
The global unique identifier for this post. This currently matches the value
stored in WP_Post->guid and the guid column in the "post_objects" database
"""
guid: String
"""The globally unique identifier of the node."""
id: ID!
"""Whether the object is restricted from the current viewer"""
isRestricted: Boolean
"""The permalink of the post"""
link: String
"""
The local modified time for a post. If a post was recently updated the
modified field will change to match the corresponding time.
"""
modified: String
"""
The GMT modified time for a post. If a post was recently updated the modified
field will change to match the corresponding time in GMT.
"""
modifiedGmt: String
"""
The uri slug for the post. This is equivalent to the WP_Post->post_name field
and the post_name column in the database for the "post_objects" table.
"""
slug: String
"""The current status of the object"""
status: String
"""URI path for the resource"""
uri: String!
}
"""
The Type of Identifier used to fetch a single resource. Default is ID.
"""
enum ContentNodeIdTypeEnum {
"""Identify a resource by the Database ID."""
DATABASE_ID
"""Identify a resource by the (hashed) Global ID."""
ID
"""Identify a resource by the URI."""
URI
}
union ContentRevisionUnion = Post | Page
"""An Post Type object"""
type ContentType implements Node {
"""Whether this content type should can be exported."""
canExport: Boolean
"""List of Taxonomies connected to the Post Type"""
connectedTaxonomies(
"""Select which taxonomies to limit the results to"""
taxonomies: [TaxonomyEnum]
): [Taxonomy]
"""A list of Taxonomies associated with the post type"""
connectedTaxonomyNames(
"""Select which taxonomies to limit the results to"""
taxonomies: [TaxonomyEnum]
): [String]
"""
Whether delete this type of content when the author of it is deleted from the system.
"""
deleteWithUser: Boolean
"""Description of the content type."""
description: String
"""
Whether to exclude posts with this post type from front end search results.
"""
excludeFromSearch: Boolean
"""The plural name of the post type within the GraphQL Schema."""
graphqlPluralName: String
"""The singular name of the post type within the GraphQL Schema."""
graphqlSingleName: String
"""
Whether this content type should have archives. Content archives are generated by type and by date.
"""
hasArchive: Boolean
"""Whether the post type is hierarchical, for example pages."""
hierarchical: Boolean
"""The globally unique identifier of the post-type object."""
id: ID!
"""Whether the object is restricted from the current viewer"""
isRestricted: Boolean
"""Display name of the content type."""
label: String
"""Details about the post type labels."""
labels: PostTypeLabelDetails
"""The name of the icon file to display as a menu icon."""
menuIcon: String
"""
The position of this post type in the menu. Only applies if show_in_menu is true.
"""
menuPosition: Int
"""
The internal name of the post type. This should not be used for display purposes.
"""
name: String
"""
Whether a post type is intended for use publicly either via the admin
interface or by front-end users. While the default settings of
exclude_from_search, publicly_queryable, show_ui, and show_in_nav_menus are
inherited from public, each does not rely on this relationship and controls a
very specific intention.
"""
public: Boolean
"""
Whether queries can be performed on the front end for the post type as part of parse_request().
"""
publiclyQueryable: Boolean
"""
Name of content type to diplay in REST API "wp/v2" namespace.
"""
restBase: String
"""The REST Controller class assigned to handling this content type."""
restControllerClass: String
"""Makes this post type available via the admin bar."""
showInAdminBar: Boolean
"""Whether to add the post type to the GraphQL Schema."""
showInGraphql: Boolean
"""
Where to show the post type in the admin menu. To work, $show_ui must be true.
If true, the post type is shown in its own top level menu. If false, no menu
is shown. If a string of an existing top level menu (eg. "tools.php"
or "edit.php?post_type=page"), the post type will be placed as a
sub-menu of that.
"""
showInMenu: Boolean
"""Makes this post type available for selection in navigation menus."""
showInNavMenus: Boolean
"""
Whether to add the post type route in the REST API "wp/v2" namespace.
"""
showInRest: Boolean
"""
Whether to generate and allow a UI for managing this post type in the admin.
"""
showUi: Boolean
}
"""Allowed Content Types"""
enum ContentTypeEnum {
"""The Type of Content object"""
ATTACHMENT
"""The Type of Content object"""
PAGE
"""The Type of Content object"""
POST
}
"""
The Type of Identifier used to fetch a single Content Type node. To be used along with the "id" field. Default is "ID".
"""
enum ContentTypeIdTypeEnum {
"""The globally unique ID"""
ID
"""The name of the content type."""
NAME
}
"""Input for the createCategory mutation"""
input CreateCategoryInput {
"""The slug that the category will be an alias of"""
aliasOf: String
clientMutationId: String!
"""The description of the category object"""
description: String
"""The name of the category object to mutate"""
name: String!
"""The ID of the category that should be set as the parent"""
parentId: ID
"""
If this argument exists then the slug will be checked to see if it is not an
existing valid term. If that check succeeds (it is not a valid term), then it
is added and the term id is given. If it fails, then a check is made to
whether the taxonomy is hierarchical and the parent argument is not empty. If
the second check succeeds, the term will be inserted and the term id will be
given. If the slug argument is empty, then it will be calculated from the term
"""
slug: String
}
"""The payload for the createCategory mutation"""
type CreateCategoryPayload {
"""The created category"""
category: Category
clientMutationId: String!
}
"""Input for the createComment mutation"""
input CreateCommentInput {
"""User agent used to post the comment."""
agent: String
"""The approval status of the comment."""
approved: String
"""The name of the comment's author."""
author: String
"""The email of the comment's author."""
authorEmail: String
"""IP address for the comment's author."""
authorIp: String
"""The url of the comment's author."""
authorUrl: String
clientMutationId: String!
"""The ID of the post object the comment belongs to."""
commentOn: Int
"""Content of the comment."""
content: String
"""
The date of the object. Preferable to enter as year/month/day ( e.g.
01/31/2017 ) as it will rearrange date as fit if it is not specified.
Incomplete dates may have unintended results for example, "2017" as the input
will use current date with timestamp 20:17
"""
date: String
"""Parent comment of current comment."""
parent: ID
"""Type of comment."""
type: String
"""The userID of the comment's author."""
userId: Int
}