Schema Documentation

productType

Description

A 0bject

Response

Returns a ProductType

Arguments
NameDescription
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
    }idisContentNodeisRestrictedisTermNodelinknameproductTypeIdseo {
      ...TaxonomySEOFragment
    }slugtaxonomy {
      ...ProductTypeToTaxonomyConnectionEdgeFragment
    }taxonomyNametermGroupIdtermTaxonomyIduri
  }
}
Variables
{"id":4,"idType":"DATABASE_ID"}
Response
{"data":{"productType":{"contentNodes":ProductTypeToContentNodeConnection,"count":987,"databaseId":123,"description":"xyz789","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":4,"isContentNode":false,"isRestricted":true,"isTermNode":true,"link":"xyz789","name":"xyz789","productTypeId":987,"seo":TaxonomySEO,"slug":"xyz789","taxonomy":ProductTypeToTaxonomyConnectionEdge,"taxonomyName":"abc123","termGroupId":987,"termTaxonomyId":987,"uri":"xyz789"}}}