Skip to main content
Version: 2.0.0-alpha

Interface: EntityOnFetchProps<M, UserType>

Parameters passed to hooks when an entity is fetched

Type parameters

NameType
Mextends Object = any
UserTypeextends User = User

Properties

collection

collection: EntityCollection<M, string, User>

Collection of the entity

Defined in

lib/src/models/entity_callbacks.ts:79


context

context: FireCMSContext<UserType>

Context of the app status

Defined in

lib/src/models/entity_callbacks.ts:95


entity

entity: Entity<M>

Fetched entity

Defined in

lib/src/models/entity_callbacks.ts:90


path

path: string

Full path of the CMS where this collection is being fetched. Might contain unresolved aliases.

Defined in

lib/src/models/entity_callbacks.ts:85