Skip to content

EntityOnSaveProps

@firecms/core


@firecms/core / EntityOnSaveProps

Defined in: types/entity_callbacks.ts:123

Parameters passed to hooks when an entity is saved

M extends Record<string, any> = any

USER extends User = User

collection: ResolvedEntityCollection<M>

Defined in: types/entity_callbacks.ts:128

Resolved collection of the entity


context: FireCMSContext<USER>

Defined in: types/entity_callbacks.ts:164

Context of the app status


entityId: string

Defined in: types/entity_callbacks.ts:144

ID of the entity


path: string

Defined in: types/entity_callbacks.ts:134

Full path of the CMS where this entity is being saved. Might contain unresolved aliases.


optional previousValues: Partial<M>

Defined in: types/entity_callbacks.ts:154

Previous values


resolvedPath: string

Defined in: types/entity_callbacks.ts:139

Full path where this entity is being saved, with alias resolved


status: EntityStatus

Defined in: types/entity_callbacks.ts:159

New or existing entity


values: Partial<EntityValues<M>>

Defined in: types/entity_callbacks.ts:149

Values being saved