Types > Category
Commerce APITypesCategory
Category

Description

Topic: Categories

Fields

ancestors: [CategoryAncestor!]!

Category ancestors


content_image_files: [File]

Image files referenced by "raw_content".

Translatable

Expandable

Permission bit: "files.read"


created_at: String!

The date and time when the category was created, RFC 3339 format

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


custom_field_objects: CustomFieldObjects

Custom field objects extracted and ready for expansion

Translatable


custom_fields: [CustomField!]!


featured: Boolean!

States whether or not the category is featured

Example: false


handle: String!

An URL-friendly unique string for the category automatically generated from its title

Example: "ipods"


has_children: Boolean!

Whether category has children or not

Example: false


id: String!

Unique category identifier. See also: Unique Identifiers

Example: "ca_EQzGqWoY"


image_files: [File]

Images files for this category

Translatable

Expandable

Permission bit: "files.read"


meta_description: String!

Meta description for SEO purposes

Translatable


meta_title: String!

SEO-friendly title of the category

Translatable


published: Boolean!

Whether server thinks category is published or not (depends on server time)

Example: false


published_at: String

The date and time when the category was published or null

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


raw_content: String!

Raw content of the category

Translatable

Example: "{}"


sort_order: CategorySortOrder!

The default order in which products in the category appear

Example: "created_at_asc"


title: String!

The name of the category

Translatable

Example: "IPods"


updated_at: String!

The date and time when the category was last updated, RFC 3339 format

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


Used By

Mutations

categoriesCreate, categoriesModify

Queries

categories

Types

CategoryCount, CategoryExpandableItems, CategorySearchResult, CustomFieldObjects, MenuItem, Product, PromotionCondition, ReturnPolicyCondition, UnifiedSearchResult

Preview (typescript)

Loading module