Global

Details

Methods


_createOrAssignChildRecordIfRequired(props, context)

Creates child record for relation types like HasOne or HasMany with foreignKey in order to satisfy foreignKey dependency (so called parent records).

Method parameters:
Name Type Description
props Object

See Mapper#create.

context Object

contains collected information.

Properties
Name Type Description
opts Object

See Mapper#create.

parentRelationMap Object

contains parent records map

originalProps Object

contains data passed into Mapper#create method

Return value:
Type Description
Promise

updated props

Details
Since Source See
3.0.0 Mapper.js, line 1087

_createParentRecordIfRequired(props, opts)

Creates parent record for relation types like BelongsTo or HasMany with localKeys in order to satisfy foreignKey dependency (so called child records).

Method parameters:
Name Type Description
props Object

See Mapper#create.

opts Object

See Mapper#create.

Return value:
Type Description
Object

cached parent records map

Details
Since Source See
3.0.0 Mapper.js, line 1053