Schema Documentation

ProductCategory

Description

The productCategory type

Fields
Field NameDescription
ancestors - ProductCategoryToAncestorsProductCategoryConnection The ancestors of the node. Default ordered as lowest (closest to the child) to highest (closest to the root).
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

children - ProductCategoryToProductCategoryConnection Connection between the productCategory type and its children productCategories.
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - ProductCategoryToProductCategoryConnectionWhereArgs

Arguments for filtering the connection

contentNodes - ProductCategoryToContentNodeConnection Connection between the ProductCategory type and the ContentNode type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - ProductCategoryToContentNodeConnectionWhereArgs

Arguments for filtering the connection

count - Int The number of objects connected to the object
databaseId - Int! The unique identifier stored in the database
description - String The description of the object
display - ProductCategoryDisplay Product category display type
enqueuedScripts - TermNodeToEnqueuedScriptConnection Connection between the TermNode type and the EnqueuedScript type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

enqueuedStylesheets - TermNodeToEnqueuedStylesheetConnection Connection between the TermNode type and the EnqueuedStylesheet type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

id - ID! The unique resource identifier path
image - MediaItem Product category image
isContentNode - Boolean! Whether the node is a Content Node
isRestricted - Boolean Whether the object is restricted from the current viewer
isTermNode - Boolean! Whether the node is a Term
link - String The link to the term
menuOrder - Int Product category menu order
name - String The human friendly name of the object.
parent - ProductCategoryToParentProductCategoryConnectionEdge Connection between the productCategory type and its parent productCategory.
parentDatabaseId - Int Database id of the parent node
parentId - ID The globally unique identifier of the parent node.
productAddons - ProductCategoryToProductAddonConnection Connection between the ProductCategory type and the ProductAddon type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - ProductCategoryToProductAddonConnectionWhereArgs

Arguments for filtering the connection

productCategoryId - Int The id field matches the WP_Post->ID field. Deprecated in favor of databaseId
products - ProductCategoryToProductConnection Connection between the ProductCategory type and the Product type
Arguments
first - Int

The number of items to return after the referenced "after" cursor

last - Int

The number of items to return before the referenced "before" cursor

after - String

Cursor used along with the "first" argument to reference where in the dataset to get data

before - String

Cursor used along with the "last" argument to reference where in the dataset to get data

where - ProductCategoryToProductConnectionWhereArgs

Arguments for filtering the connection

seo - TaxonomySEO The Yoast SEO data of the Product categories taxonomy.
slug - String An alphanumeric identifier for the object unique to its type.
taxonomy - ProductCategoryToTaxonomyConnectionEdge Connection between the ProductCategory type and the Taxonomy type
taxonomyName - String The name of the taxonomy that the object is associated with
termGroupId - Int The ID of the term group that this term object belongs to
termTaxonomyId - Int The taxonomy ID that the object is associated with
uri - String The unique resource identifier path
Example
{"ancestors":ProductCategoryToAncestorsProductCategoryConnection,"children":ProductCategoryToProductCategoryConnection,"contentNodes":ProductCategoryToContentNodeConnection,"count":987,"databaseId":987,"description":"xyz789","display":"BOTH","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":"4","image":MediaItem,"isContentNode":false,"isRestricted":false,"isTermNode":false,"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":123,"uri":"xyz789"}