Skip to main content

Class: EntityReference

Class used to create a reference to an entity in a different path

Constructors

constructor

โ€ข new EntityReference(id, path)

Parameters

NameType
idstring
pathstring

Defined in

models/entities.ts:127

Properties

id

โ€ข Readonly id: string

Id of the entity

Defined in

models/entities.ts:120


path

โ€ข Readonly path: string

A string representing the path of the referenced document (relative to the root of the database).

Defined in

models/entities.ts:125

Accessors

pathWithId

โ€ข get pathWithId(): string

Returns

string

Defined in

models/entities.ts:132