Schema Documentation
contentType
Description
Fetch a Content Type node by unique Identifier
Response
 Returns a ContentType
Arguments
| Name | Description | 
|---|---|
| id-ID! | Unique Identifier for the Content Type node. | 
| idType-ContentTypeIdTypeEnum | Type of unique identifier to fetch a content type by. Default is Global ID | 
Example
Query
query contentType(  $id: ID!,  $idType: ContentTypeIdTypeEnum){  contentType(    id: $id,    idType: $idType  ){    canExportconnectedTaxonomies {      ...ContentTypeToTaxonomyConnectionFragment    }contentNodes {      ...ContentTypeToContentNodeConnectionFragment    }deleteWithUserdescriptionexcludeFromSearchgraphqlPluralNamegraphqlSingleNamehasArchivehierarchicalidisContentNodeisFrontPageisPostsPageisRestrictedisTermNodelabellabels {      ...PostTypeLabelDetailsFragment    }menuIconmenuPositionnamepublicpubliclyQueryablerestBaserestControllerClassshowInAdminBarshowInGraphqlshowInMenushowInNavMenusshowInRestshowUiuri  }}Variables
{"id":4,"idType":"ID"}Response
{"data":{"contentType":{"canExport":false,"connectedTaxonomies":ContentTypeToTaxonomyConnection,"contentNodes":ContentTypeToContentNodeConnection,"deleteWithUser":true,"description":"abc123","excludeFromSearch":false,"graphqlPluralName":"abc123","graphqlSingleName":"xyz789","hasArchive":false,"hierarchical":true,"id":4,"isContentNode":false,"isFrontPage":true,"isPostsPage":true,"isRestricted":true,"isTermNode":false,"label":"abc123","labels":PostTypeLabelDetails,"menuIcon":"xyz789","menuPosition":123,"name":"xyz789","public":false,"publiclyQueryable":false,"restBase":"abc123","restControllerClass":"abc123","showInAdminBar":false,"showInGraphql":false,"showInMenu":true,"showInNavMenus":true,"showInRest":false,"showUi":true,"uri":"abc123"}}}