ProductCategory Object

Root Connection

All ProductCategory objects of an account are accessible by a query on the root connection productCategories. Such a query will return a ProductCategoryConnection!, which contains the ProductCategory objects in its nodes field.

productCategories (ProductCategoryConnection!)

Root connection for retrieving ProductCategory records.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

filter ProductCategoryFilter

Filter to determine which ProductCategory records are returned.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

Fields

The fields in this section list which values can be retrieved when querying ProductCategory records.

account (Account)

The account this record belongs to.

createdAt (ISO8601Timestamp)

The date and time at which the record was created.

disabled (Boolean)

Whether the product category may not be related to any more products.

group (String)

Used to include the product category in a group.

id (ID!)

Unique identifier of the object.

name (String)

The name of the product category.

pictureUri (String)

The hyperlink to the image file for the record.

reference (String)

Automatically set to the concatenation of the Group field value and the Name field value, separated by a forward slash, written in lower case characters and with all spaces replaced by an underscore character.

ruleSet (ProductCategoryRuleSet)

Used to select a set of rules that are to be applied to the products to which the product category is related, as well as the configuration items that are related to those products. The selected rule set dictates which fields are available for these product and configuration items.

source (String)

An identifier for the client application submitting the resource or the name of an external system

sourceID (String)

The unique identifier of the resource in an external system

updatedAt (ISO8601Timestamp)

The date and time of the last update of the record. If the record has no updates it contains the createdAt value.

Connections

The connection fields in this section allow (paged) access to objects related to a specific ProductCategory record. The actual objects will be in the nodes field of the connection.

products (ProductConnection)

Products in this category.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

translations (TranslationConnection)

Translations associated with this object.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

Implements

ProductCategory implements the following interfaces. This means that fragments defined on these interfaces may be used in queries returning a ProductCategory.