Skip to main content
Version: 3.0.0-beta

Class: EntityReference

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

Constructors​

new EntityReference()​

new EntityReference(id, path): EntityReference

Parameters​

• id: string

• path: string

Returns​

EntityReference

Defined in​

packages/firecms_core/src/types/entities.ts:53

Properties​

id​

readonly id: string

ID of the entity

Defined in​

packages/firecms_core/src/types/entities.ts:46


path​

readonly path: string

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

Defined in​

packages/firecms_core/src/types/entities.ts:51

Accessors​

pathWithId​

get pathWithId(): string

Returns​

string

Defined in​

packages/firecms_core/src/types/entities.ts:58

Methods​

isEntityReference()​

isEntityReference(): boolean

Returns​

boolean

Defined in​

packages/firecms_core/src/types/entities.ts:62

Sign up to our newsletter to get the latest news and updates. No spam!