Skip to main content
Version: 2.0.0-alpha

Interface: EntityOnDeleteProps<M, UserType>

Parameters passed to hooks when an entity is deleted

Type parameters

NameType
Mextends Object = any
UserTypeextends User = User

Properties

collection

collection: ResolvedEntityCollection<M>

collection of the entity being deleted

Defined in

lib/src/models/entity_callbacks.ts:105


context

context: FireCMSContext<User>

Context of the app status

Defined in

lib/src/models/entity_callbacks.ts:125


entity

entity: Entity<M>

Deleted entity

Defined in

lib/src/models/entity_callbacks.ts:120


entityId

entityId: string

Deleted entity id

Defined in

lib/src/models/entity_callbacks.ts:115


path

path: string

Path of the parent collection

Defined in

lib/src/models/entity_callbacks.ts:110