FacetValue

FacetValue

A particular value of a Facet.

Signature

class FacetValue extends VendureEntity implements Translatable, HasCustomFields {
  constructor(input?: DeepPartial<FacetValue>)
  name: LocaleString;
  @Column() code: string;
  @OneToMany(type => FacetValueTranslation, translation => translation.base, { eager: true })
    translations: Array<Translation<FacetValue>>;
  @ManyToOne(type => Facet, group => group.values, { onDelete: 'CASCADE' })
    facet: Facet;
  @Column(type => CustomFacetValueFields)
    customFields: CustomFacetValueFields;
}

Members

constructor

method
type:
(input?: DeepPartial<FacetValue>) => FacetValue

name

property
type:
LocaleString

code

property
type:
string

translations

property
type:
Array<Translation<FacetValue>>

facet

property
type:
Facet

customFields

property
type:
CustomFacetValueFields