Skip to main content
Version: 0.17

Class: RecordTransformBuilder<RT, RI, R>

Type parameters​

NameType
RTstring
RIRecordIdentity
RUninitializedRecord

Constructors​

constructor​

• new RecordTransformBuilder<RT, RI, R>(settings?)

Type parameters​

NameType
RTstring
RIRecordIdentity
RUninitializedRecord

Parameters​

NameType
settingsRecordTransformBuilderSettings<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​

NameType
rR

Returns​

InitializedRecord

Defined in​

packages/@orbit/records/src/record-transform-builder.ts:214


$normalizeRecordIdentity​

â–¸ $normalizeRecordIdentity(ri): RecordIdentity

Parameters​

NameType
riRI

Returns​

RecordIdentity

Defined in​

packages/@orbit/records/src/record-transform-builder.ts:222


addRecord​

â–¸ addRecord(record): AddRecordTerm<RT, RI, R>

Instantiate a new addRecord operation.

Parameters​

NameType
recordR

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​

NameType
recordRI
relationshipstring
relatedRecordRI

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​

NameType
recordRI
relationshipstring
relatedRecordRI

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​

NameType
recordRI

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​

NameType
recordRI
attributestring
valueunknown

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​

NameType
recordRI
keystring
valuestring

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​

NameType
recordRI
relationshipstring
relatedRecordnull | 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​

NameType
recordRI
relationshipstring
relatedRecordsRI[]

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​

NameType
recordR

Returns​

UpdateRecordTerm<RT, RI, R>

Defined in​

packages/@orbit/records/src/record-transform-builder.ts:107