EntityFormatter<T>: ((item) => DynamoDBValues)

Type Parameters

  • T

Type declaration

    • (item): DynamoDBValues
    • Given an internal object, convert to the form stored in DynamoDB By default the formatter is a "no-op" function - i.e. the object is stored to DynamoDB with no changes Entities may want to customize this behavior, however, e.g. for changing formats (e.g. date times), or for stopping certain properties being persisted

      Parameters

      • item: T

      Returns DynamoDBValues

Generated using TypeDoc