ProductCategory - Product Module Data Models Reference

This documentation provides a reference to the ProductCategory data model. It belongs to the Product Module.

idPrimaryKeyModifier<IdProperty>
The ID of the product category.
nameTextProperty
The name of the product category
descriptionTextProperty
The description of the product category
handleTextProperty
The unique handle of the product category
mpathTextProperty
The mpath of the product category
is_activeBooleanProperty
Whether the product category is active.
is_internalBooleanProperty
Whether the product category is internal, meaning it's only available for admin users.
rankNumberProperty
The rank of the product category among its siblings.
category_childrenHasMany<ProductCategory>
The associated category_children.
productsManyToMany<Product>
The associated products.
metadataJSONPropertyOptional
Holds custom data in key-value pairs.
parent_categoryBelongsTo<ProductCategory>Optional
The associated parent_category.
Was this page helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break