Skip to main content

Interface: EntityOnSaveProps<M>

Parameters passed to hooks when an entity is saved

Type parameters

NameType
Mextends Object

Properties

context

context: FireCMSContext<any>

Context of the app status

Defined in

models/entity_callbacks.ts:97


entityId

Optional entityId: string

Id of the entity or undefined if new

Defined in

models/entity_callbacks.ts:77


path

path: string

Full path where this entity is being saved

Defined in

models/entity_callbacks.ts:72


previousValues

Optional previousValues: Partial<M>

Previous values

Defined in

models/entity_callbacks.ts:87


schema

schema: ResolvedEntitySchema<M>

Resolved schema of the entity

Defined in

models/entity_callbacks.ts:67


status

status: EntityStatus

New or existing entity

Defined in

models/entity_callbacks.ts:92


values

values: Partial<M>

Values being saved

Defined in

models/entity_callbacks.ts:82