Helper
The base class for helper classes
Member Summary
| Public Members | ||
| public get |
|
|
| public set |
|
|
| public get |
|
|
| public get |
|
|
| Private Members | ||
| private |
|
|
| private |
_relationships: {} |
|
Method Summary
| Public Methods | ||
| public |
async clear(): * Remove this object from storage |
|
| public |
Deserialies the relationship stubs prior to synching with database |
|
| public |
async getRelationship(obj: Object): Promise Get the relationship from storage or if it's already associated based on the type and id. |
|
| public |
Initializer for the helper function |
|
| public |
async load(): * Load this object from storage. |
|
| public |
async store(): * Store this object into storage |
|
| public |
async syncRelationships(json: *): Promise Synchronize the relationships from storage to the current object |
|
| public |
Default toJSON for json api format |
|
Public Methods
public deserializeRelationshipStubs(json: Object) source
Deserialies the relationship stubs prior to synching with database
Params:
| Name | Type | Attribute | Description |
| json | Object | Must be in JsonAPI Format |
public async getRelationship(obj: Object): Promise source
Get the relationship from storage or if it's already associated based on the type and id.
Manual
Reference
Source
Test
