Skip to main content

Interface: EntityOnSaveProps<M>

Parameters passed to hooks when an entity is saved

Type parameters#

NameType
MM: Object

Properties#

context#

context: FireCMSContext

Context of the app status

Defined in#

models/entity_callbacks.ts:87


entityId#

Optional entityId: string

Id of the entity or undefined if new

Defined in#

models/entity_callbacks.ts:72


path#

path: string

Full path where this entity is being saved

Defined in#

models/entity_callbacks.ts:67


schema#

schema: EntitySchema<M>

Resolved schema of the entity

Defined in#

models/entity_callbacks.ts:62


status#

status: EntityStatus

New or existing entity

Defined in#

models/entity_callbacks.ts:82


values#

values: Partial<M>

Values being saved

Defined in#

models/entity_callbacks.ts:77