EntityReference
Ce contenu n’est pas encore disponible dans votre langue.
@firecms/core / EntityReference
Class: EntityReference
Section titled “Class: EntityReference”Defined in: types/entities.ts:42
Class used to create a reference to an entity in a different path
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EntityReference(
id,path,databaseId?):EntityReference
Defined in: types/entities.ts:58
Parameters
Section titled “Parameters”string
string
databaseId?
Section titled “databaseId?”string
Returns
Section titled “Returns”EntityReference
Properties
Section titled “Properties”databaseId?
Section titled “databaseId?”
readonlyoptionaldatabaseId:string
Defined in: types/entities.ts:56
Optional database ID where the entity is stored (if multiple databases are used)
readonlyid:string
Defined in: types/entities.ts:46
ID of the entity
readonlypath:string
Defined in: types/entities.ts:51
A string representing the path of the referenced document (relative to the root of the database).
Accessors
Section titled “Accessors”pathWithId
Section titled “pathWithId”Get Signature
Section titled “Get Signature”get pathWithId():
string
Defined in: types/entities.ts:64
Returns
Section titled “Returns”string
Methods
Section titled “Methods”isEntityReference()
Section titled “isEntityReference()”isEntityReference():
boolean
Defined in: types/entities.ts:68
Returns
Section titled “Returns”boolean