Schema Documentation

postFormat

Description

A 0bject

Response

Returns a PostFormat

Arguments
NameDescription
id - ID! The globally unique identifier of the object.
idType - PostFormatIdType Type of unique identifier to fetch by. Default is Global ID

Example

Query
query postFormat(  $id: ID!,  $idType: PostFormatIdType){  postFormat(    id: $id,    idType: $idType  ){    contentNodes {      ...PostFormatToContentNodeConnectionFragment    }countdatabaseIddescriptionenqueuedScripts {      ...TermNodeToEnqueuedScriptConnectionFragment    }enqueuedStylesheets {      ...TermNodeToEnqueuedStylesheetConnectionFragment    }idisContentNodeisRestrictedisTermNodelinknamepostFormatIdposts {      ...PostFormatToPostConnectionFragment    }seo {      ...TaxonomySEOFragment    }slugtaxonomy {      ...PostFormatToTaxonomyConnectionEdgeFragment    }taxonomyNametermGroupIdtermTaxonomyIduri  }}
Variables
{"id":"4","idType":"DATABASE_ID"}
Response
{"data":{"postFormat":{"contentNodes":PostFormatToContentNodeConnection,"count":123,"databaseId":987,"description":"xyz789","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":"4","isContentNode":false,"isRestricted":true,"isTermNode":true,"link":"xyz789","name":"abc123","postFormatId":123,"posts":PostFormatToPostConnection,"seo":TaxonomySEO,"slug":"abc123","taxonomy":PostFormatToTaxonomyConnectionEdge,"taxonomyName":"abc123","termGroupId":987,"termTaxonomyId":123,"uri":"abc123"}}}
©  2021-2023WPGraphQL WooCommerce.All rights reserved.