Schema Documentation
productCategory
Description
A 0bject
Response
Returns a ProductCategory
Arguments
Name | Description |
---|---|
id - ID! | The globally unique identifier of the object. |
idType - ProductCategoryIdType | Type of unique identifier to fetch by. Default is Global ID |
Example
Query
query productCategory( $id: ID!, $idType: ProductCategoryIdType){ productCategory( id: $id, idType: $idType ){ ancestors { ...ProductCategoryToAncestorsProductCategoryConnectionFragment }children { ...ProductCategoryToProductCategoryConnectionFragment }contentNodes { ...ProductCategoryToContentNodeConnectionFragment }countdatabaseIddescriptiondisplayenqueuedScripts { ...TermNodeToEnqueuedScriptConnectionFragment }enqueuedStylesheets { ...TermNodeToEnqueuedStylesheetConnectionFragment }idimage { ...MediaItemFragment }isContentNodeisRestrictedisTermNodelinkmenuOrdernameparent { ...ProductCategoryToParentProductCategoryConnectionEdgeFragment }parentDatabaseIdparentIdproductAddons { ...ProductCategoryToProductAddonConnectionFragment }productCategoryIdproducts { ...ProductCategoryToProductConnectionFragment }seo { ...TaxonomySEOFragment }slugtaxonomy { ...ProductCategoryToTaxonomyConnectionEdgeFragment }taxonomyNametermGroupIdtermTaxonomyIduri }}
Variables
{"id":4,"idType":"DATABASE_ID"}
Response
{"data":{"productCategory":{"ancestors":ProductCategoryToAncestorsProductCategoryConnection,"children":ProductCategoryToProductCategoryConnection,"contentNodes":ProductCategoryToContentNodeConnection,"count":987,"databaseId":123,"description":"abc123","display":"BOTH","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":"4","image":MediaItem,"isContentNode":true,"isRestricted":true,"isTermNode":true,"link":"abc123","menuOrder":987,"name":"abc123","parent":ProductCategoryToParentProductCategoryConnectionEdge,"parentDatabaseId":123,"parentId":"4","productAddons":ProductCategoryToProductAddonConnection,"productCategoryId":987,"products":ProductCategoryToProductConnection,"seo":TaxonomySEO,"slug":"xyz789","taxonomy":ProductCategoryToTaxonomyConnectionEdge,"taxonomyName":"abc123","termGroupId":123,"termTaxonomyId":987,"uri":"xyz789"}}}