Skip to main content
Version: 1.0.0

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:132

Properties

id

Readonly id: string

Id of the entity

Defined in

models/entities.ts:125


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:130

Accessors

pathWithId

get pathWithId(): string

Returns

string

Defined in

models/entities.ts:137

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!