FacetValue
FacetValue
A particular value of a Facet.
Signature
class FacetValue extends VendureEntity implements Translatable, HasCustomFields, ChannelAware {
    constructor(input?: DeepPartial<FacetValue>)
    name: LocaleString;
    @Column() code: string;
    @OneToMany(type => FacetValueTranslation, translation => translation.base, { eager: true })
    translations: Array<Translation<FacetValue>>;
    @Index()
    @ManyToOne(type => Facet, group => group.values, { onDelete: 'CASCADE' })
    facet: Facet;
    @EntityId()
    facetId: ID;
    @Column(type => CustomFacetValueFields)
    customFields: CustomFacetValueFields;
    @ManyToMany(type => Channel, channel => channel.facetValues)
    @JoinTable()
    channels: Channel[];
    @ManyToMany(() => Product, product => product.facetValues, { onDelete: 'CASCADE' })
    products: Product[];
    @ManyToMany(type => ProductVariant, productVariant => productVariant.facetValues)
    productVariants: ProductVariant[];
}
- 
Extends: VendureEntity
- 
Implements: Translatable,HasCustomFields,ChannelAware
constructor
method
(input?: DeepPartial<FacetValue>) => FacetValuename
property
LocaleStringcode
property
stringtranslations
property
Array<Translation<FacetValue>>facet
property
facetId
property
customFields
property
CustomFacetValueFieldschannels
property
Channel[]products
property
Product[]productVariants
property