🚨 Announcing Vendure v2 Beta

ProductOptionGroup

ProductOptionGroup

A grouping of one or more ProductOptions.

Signature

class ProductOptionGroup extends VendureEntity implements Translatable, HasCustomFields, SoftDeletable {
  constructor(input?: DeepPartial<ProductOptionGroup>)
  @Column({ type: Date, nullable: true })
    deletedAt: Date | null;
  name: LocaleString;
  @Column()
    code: string;
  @OneToMany(type => ProductOptionGroupTranslation, translation => translation.base, { eager: true })
    translations: Array<Translation<ProductOptionGroup>>;
  @OneToMany(type => ProductOption, option => option.group)
    options: ProductOption[];
  @ManyToOne(type => Product)
    product: Product;
  @Column(type => CustomProductOptionGroupFields)
    customFields: CustomProductOptionGroupFields;
}

Extends

Implements

Members

constructor

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

deletedAt

property
type:
Date | null

name

property
type:
LocaleString

code

property
type:
string

translations

property
type:
Array<Translation<ProductOptionGroup>>

options

property
type:
ProductOption[]

product

property
type:
Product

customFields

property
type:
CustomProductOptionGroupFields