Interface: AsyncRecordAccessor
Hierarchy​
↳
AsyncRecordAccessor
Implemented by​
Properties​
keyMap​
• Optional
keyMap: RecordKeyMap
Inherited from​
Defined in​
record-cache/src/record-accessor.ts:21
name​
• Optional
name: string
Inherited from​
Defined in​
record-cache/src/record-accessor.ts:20
schema​
• schema: RecordSchema
Inherited from​
Defined in​
record-cache/src/record-accessor.ts:22
Methods​
addInverseRelationshipsAsync​
â–¸ addInverseRelationshipsAsync(relationships
): Promise
<void
>
Parameters​
Name | Type |
---|---|
relationships | RecordRelationshipIdentity [] |
Returns​
Promise
<void
>
Defined in​
record-cache/src/record-accessor.ts:95
applyRecordChangesetAsync​
â–¸ applyRecordChangesetAsync(changeset
): Promise
<void
>
Parameters​
Name | Type |
---|---|
changeset | RecordChangeset |
Returns​
Promise
<void
>
Defined in​
record-cache/src/record-accessor.ts:101
getInverseRelationshipsAsync​
â–¸ getInverseRelationshipsAsync(recordIdentityOrIdentities
): Promise
<RecordRelationshipIdentity
[]>
Parameters​
Name | Type |
---|---|
recordIdentityOrIdentities | RecordIdentity | RecordIdentity [] |
Returns​
Promise
<RecordRelationshipIdentity
[]>
Defined in​
record-cache/src/record-accessor.ts:82
getRecordAsync​
â–¸ getRecordAsync(recordIdentity
): Promise
<undefined
| InitializedRecord
>
Parameters​
Name | Type |
---|---|
recordIdentity | RecordIdentity |
Returns​
Promise
<undefined
| InitializedRecord
>
Defined in​
record-cache/src/record-accessor.ts:68
getRecordsAsync​
â–¸ getRecordsAsync(typeOrIdentities?
): Promise
<InitializedRecord
[]>
Parameters​
Name | Type |
---|---|
typeOrIdentities? | string | RecordIdentity [] |
Returns​
Promise
<InitializedRecord
[]>
Defined in​
record-cache/src/record-accessor.ts:71
getRelatedRecordAsync​
â–¸ getRelatedRecordAsync(identity
, relationship
): Promise
<undefined
| null
| RecordIdentity
>
Parameters​
Name | Type |
---|---|
identity | RecordIdentity |
relationship | string |
Returns​
Promise
<undefined
| null
| RecordIdentity
>
Defined in​
record-cache/src/record-accessor.ts:74
getRelatedRecordsAsync​
â–¸ getRelatedRecordsAsync(identity
, relationship
): Promise
<undefined
| RecordIdentity
[]>
Parameters​
Name | Type |
---|---|
identity | RecordIdentity |
relationship | string |
Returns​
Promise
<undefined
| RecordIdentity
[]>
Defined in​
record-cache/src/record-accessor.ts:78
removeInverseRelationshipsAsync​
â–¸ removeInverseRelationshipsAsync(relationships
): Promise
<void
>
Parameters​
Name | Type |
---|---|
relationships | RecordRelationshipIdentity [] |
Returns​
Promise
<void
>
Defined in​
record-cache/src/record-accessor.ts:98
removeRecordAsync​
â–¸ removeRecordAsync(recordIdentity
): Promise
<undefined
| InitializedRecord
>
Parameters​
Name | Type |
---|---|
recordIdentity | RecordIdentity |
Returns​
Promise
<undefined
| InitializedRecord
>
Defined in​
record-cache/src/record-accessor.ts:89
removeRecordsAsync​
â–¸ removeRecordsAsync(recordIdentities
): Promise
<InitializedRecord
[]>
Parameters​
Name | Type |
---|---|
recordIdentities | RecordIdentity [] |
Returns​
Promise
<InitializedRecord
[]>
Defined in​
record-cache/src/record-accessor.ts:92
setRecordAsync​
â–¸ setRecordAsync(record
): Promise
<void
>
Parameters​
Name | Type |
---|---|
record | InitializedRecord |
Returns​
Promise
<void
>
Defined in​
record-cache/src/record-accessor.ts:87
setRecordsAsync​
â–¸ setRecordsAsync(records
): Promise
<void
>
Parameters​
Name | Type |
---|---|
records | InitializedRecord [] |
Returns​
Promise
<void
>