PersistentModel Module
API > [PersistentModel Module]
Module
Classes
Functions
Functions
foreign
► foreign(target: any
, property: string
): void
Defined in PersistentModel.ts:402
foreign: is a JavaScript ES7 decorator that indicates that the associated property is the primary key of another @besync/GraphStore model
Parameters:
Param | Type | Description |
---|---|---|
target | any | - |
property | string | - |
Returns: void
jsonfield
► jsonfield(target: any
, property: string
): void
Defined in PersistentModel.ts:394
jsonfield: is a JavaScript ES7 decorator that indicates that the associated property is a nested JSON object
Parameters:
Param | Type | Description |
---|---|---|
target | any | - |
property | string | - |
Returns: void
observable
► observable(target: any
, propName: string
): any
Defined in PersistentModel.ts:359
observable: is a JavaScript ES7 decorator that indicates that the associated property is a GraphStore enhanced observable field; @besync/GraphStore tracks observers of this field to automatically subscribe and unsubscribe to the associated document in the persistent store.
Parameters:
Param | Type | Description |
---|---|---|
target | any | - |
propName | string | - |
Returns: any
primary
► primary(target: any
, property: string
): void
Defined in PersistentModel.ts:344
primary: is a JavaScript ES7 decorator that indicates that the associated property is a primary key of this model
Parameters:
Param | Type | Description |
---|---|---|
target | any | - |
property | string | - |
Returns: void