Schema Documentation

productTag

Description

A 0bject

Response

Returns a ProductTag

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

Example

Query
query productTag(  $id: ID!,  $idType: ProductTagIdType){  productTag(    id: $id,    idType: $idType  ){    contentNodes {      ...ProductTagToContentNodeConnectionFragment    }countdatabaseIddescriptionenqueuedScripts {      ...TermNodeToEnqueuedScriptConnectionFragment    }enqueuedStylesheets {      ...TermNodeToEnqueuedStylesheetConnectionFragment    }idisContentNodeisRestrictedisTermNodelinknameproductTagIdproducts {      ...ProductTagToProductConnectionFragment    }seo {      ...TaxonomySEOFragment    }slugtaxonomy {      ...ProductTagToTaxonomyConnectionEdgeFragment    }taxonomyNametermGroupIdtermTaxonomyIduri  }}
Variables
{"id":"4","idType":"DATABASE_ID"}
Response
{"data":{"productTag":{"contentNodes":ProductTagToContentNodeConnection,"count":987,"databaseId":123,"description":"xyz789","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":4,"isContentNode":false,"isRestricted":false,"isTermNode":false,"link":"abc123","name":"xyz789","productTagId":987,"products":ProductTagToProductConnection,"seo":TaxonomySEO,"slug":"abc123","taxonomy":ProductTagToTaxonomyConnectionEdge,"taxonomyName":"xyz789","termGroupId":987,"termTaxonomyId":123,"uri":"xyz789"}}}