Schema Documentation
productType
Description
A 0bject
Response
Returns a ProductType
Arguments
Name | Description |
---|---|
id - ID! | The globally unique identifier of the object. |
idType - ProductTypeIdType | Type of unique identifier to fetch by. Default is Global ID |
Example
Query
query productType( $id: ID!, $idType: ProductTypeIdType){ productType( id: $id, idType: $idType ){ contentNodes { ...ProductTypeToContentNodeConnectionFragment }countdatabaseIddescriptionenqueuedScripts { ...TermNodeToEnqueuedScriptConnectionFragment }enqueuedStylesheets { ...TermNodeToEnqueuedStylesheetConnectionFragment }idisContentNodeisRestrictedisTermNodelinknameproductTypeIdproducts { ...ProductTypeToProductConnectionFragment }seo { ...TaxonomySEOFragment }slugtaxonomy { ...ProductTypeToTaxonomyConnectionEdgeFragment }taxonomyNametermGroupIdtermTaxonomyIduri }}
Variables
{"id":"4","idType":"DATABASE_ID"}
Response
{"data":{"productType":{"contentNodes":ProductTypeToContentNodeConnection,"count":987,"databaseId":987,"description":"xyz789","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":4,"isContentNode":false,"isRestricted":true,"isTermNode":false,"link":"abc123","name":"abc123","productTypeId":123,"products":ProductTypeToProductConnection,"seo":TaxonomySEO,"slug":"abc123","taxonomy":ProductTypeToTaxonomyConnectionEdge,"taxonomyName":"abc123","termGroupId":987,"termTaxonomyId":123,"uri":"xyz789"}}}