Class: RecordTransformBuilder<RT, RI, R>
Type parameters​
Name | Type |
---|---|
RT | string |
RI | RecordIdentity |
R | UninitializedRecord |
Constructors​
constructor​
• new RecordTransformBuilder<RT
, RI
, R
>(settings?
)
Type parameters​
Name | Type |
---|---|
RT | string |
RI | RecordIdentity |
R | UninitializedRecord |
Parameters​
Name | Type |
---|---|
settings | RecordTransformBuilderSettings <RT , RI , R > |
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:57
Properties​
$normalizer​
• Optional
$normalizer: RecordNormalizer
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:54
$schema​
• Optional
$schema: RecordSchema
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:53
$validatorFor​
• Optional
$validatorFor: ValidatorForFn
<StandardValidator
| StandardRecordValidator
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:55
Methods​
$normalizeRecord​
â–¸ $normalizeRecord(r
): InitializedRecord
Parameters​
Name | Type |
---|---|
r | R |
Returns​
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:214
$normalizeRecordIdentity​
â–¸ $normalizeRecordIdentity(ri
): RecordIdentity
Parameters​
Name | Type |
---|---|
ri | RI |
Returns​
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:222
addRecord​
â–¸ addRecord(record
): AddRecordTerm
<RT
, RI
, R
>
Instantiate a new addRecord
operation.
Parameters​
Name | Type |
---|---|
record | R |
Returns​
AddRecordTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:100
addToRelatedRecords​
â–¸ addToRelatedRecords(record
, relationship
, relatedRecord
): AddToRelatedRecordsTerm
<RT
, RI
, R
>
Instantiate a new addToRelatedRecords
operation.
Parameters​
Name | Type |
---|---|
record | RI |
relationship | string |
relatedRecord | RI |
Returns​
AddToRelatedRecordsTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:153
removeFromRelatedRecords​
â–¸ removeFromRelatedRecords(record
, relationship
, relatedRecord
): RemoveFromRelatedRecordsTerm
<RT
, RI
, R
>
Instantiate a new removeFromRelatedRecords
operation.
Parameters​
Name | Type |
---|---|
record | RI |
relationship | string |
relatedRecord | RI |
Returns​
RemoveFromRelatedRecordsTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:169
removeRecord​
â–¸ removeRecord(record
): RemoveRecordTerm
<RT
, RI
, R
>
Instantiate a new removeRecord
operation.
Parameters​
Name | Type |
---|---|
record | RI |
Returns​
RemoveRecordTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:114
replaceAttribute​
â–¸ replaceAttribute(record
, attribute
, value
): ReplaceAttributeTerm
<RT
, RI
, R
>
Instantiate a new replaceAttribute
operation.
Parameters​
Name | Type |
---|---|
record | RI |
attribute | string |
value | unknown |
Returns​
ReplaceAttributeTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:137
replaceKey​
â–¸ replaceKey(record
, key
, value
): ReplaceKeyTerm
<RT
, RI
, R
>
Instantiate a new replaceKey
operation.
Parameters​
Name | Type |
---|---|
record | RI |
key | string |
value | string |
Returns​
ReplaceKeyTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:121
replaceRelatedRecord​
â–¸ replaceRelatedRecord(record
, relationship
, relatedRecord
): ReplaceRelatedRecordTerm
<RT
, RI
, R
>
Instantiate a new replaceRelatedRecord
operation.
Parameters​
Name | Type |
---|---|
record | RI |
relationship | string |
relatedRecord | null | RI |
Returns​
ReplaceRelatedRecordTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:201
replaceRelatedRecords​
â–¸ replaceRelatedRecords(record
, relationship
, relatedRecords
): ReplaceRelatedRecordsTerm
<RT
, RI
, R
>
Instantiate a new replaceRelatedRecords
operation.
Parameters​
Name | Type |
---|---|
record | RI |
relationship | string |
relatedRecords | RI [] |
Returns​
ReplaceRelatedRecordsTerm
<RT
, RI
, R
>
Defined in​
packages/@orbit/records/src/record-transform-builder.ts:185
updateRecord​
â–¸ updateRecord(record
): UpdateRecordTerm
<RT
, RI
, R
>
Instantiate a new updateRecord
operation.
Parameters​
Name | Type |
---|---|
record | R |
Returns​
UpdateRecordTerm
<RT
, RI
, R
>