CollectionModificationEvent

CollectionModificationEvent

This event is fired whenever a Collection is modified in some way. The productVariantIds argument is an array of ids of all ProductVariants which:

  1. were part of this collection prior to modification and are no longer
  2. are now part of this collection after modification but were not before

Signature

class CollectionModificationEvent extends VendureEvent {
  constructor(ctx: RequestContext, collection: Collection, productVariantIds: ID[])
}

Members

constructor

method
type:
(ctx: RequestContext, collection: Collection, productVariantIds: ID[]) => CollectionModificationEvent
alpha