Facet
A Facet is a class of properties which can be applied to a Product or ProductVariant. They are used to enable faceted search whereby products can be filtered along a number of dimensions (facets).
For example, there could be a Facet named "Brand" which has a number of FacetValues representing the various brands of product, e.g. "Apple", "Samsung", "Dell", "HP" etc.
-
Extends:
VendureEntity -
Implements:
Translatable, HasCustomFields,ChannelAware
constructor
method
(input?: DeepPartial<Facet>) => Facetname
property
LocaleStringisPrivate
property
booleancode
property
stringtranslations
property
Array<Translation<Facet>>values
property
FacetValue[]customFields
property
CustomFacetFieldschannels
property
Channel[]Was this chapter helpful?