Salta ai contenuti

EntityReference

Questi contenuti non sono ancora disponibili nella tua lingua.

@firecms/core


@firecms/core / EntityReference

Defined in: types/entities.ts:42

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

new EntityReference(id, path, databaseId?): EntityReference

Defined in: types/entities.ts:58

string

string

string

EntityReference

readonly optional databaseId: string

Defined in: types/entities.ts:56

Optional database ID where the entity is stored (if multiple databases are used)


readonly id: string

Defined in: types/entities.ts:46

ID of the entity


readonly path: string

Defined in: types/entities.ts:51

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

get pathWithId(): string

Defined in: types/entities.ts:64

string

isEntityReference(): boolean

Defined in: types/entities.ts:68

boolean