Skip to main content
Version: 2.0.0-alpha

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

lib/src/models/entities.ts:51

Properties

id

Readonly id: string

Id of the entity

Defined in

lib/src/models/entities.ts:44


path

Readonly path: string

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

Defined in

lib/src/models/entities.ts:49

Accessors

pathWithId

get pathWithId(): string

Returns

string

Defined in

lib/src/models/entities.ts:56