Class DynamoStorageService<T>

class: DynamoStorageService

  • service via DynamoDB with id + json data.

Type Parameters

Hierarchy

  • DynamoStorageService

Implements

Constructors

Properties

$dynamo: DynamoService<MyGeneral>
_fields: string[]
_idName: string
_table: string

Methods

  • increment number attribute (or overwrite string field)

    • if not exists, then just update property with base zero 0.

    Parameters

    • id: string

      id

    • model: T

      attributes of number.

    • Optional $update: T

      (optional) update-set.

    Returns Promise<T>

  • update some attributes

    Parameters

    • id: string

      id

    • model: T

      attributes to update

    • Optional incrementals: T

      (optional) attributes to increment

    Returns Promise<T>

Generated using TypeDoc