formation

Spec

formation<TSource>(
    source: TSource,
    RootTClass: ClassCapture<TSource>,
    formationType: FormationMask = FormationMask.Full
): AttributeMap

Convert DynamoEntity to AttributeMap.

Input

Name

Type

Information

source

TSource

Entity to convert to AttributeMap.

RootTClass

ClassCapture<TSource>

Reference of @DynamoEntity class

formationType

FormationMask

Conversion bitmask

Formation Mask

With Formation Mask, only certain information can be included in the DynamoItem. It is good for generate key.

Example

It will be formationed as,

Internal Logic

Use the formatProperty method to perform a formation on all the properties, then merge all the results.

Last updated

Was this helpful?