@karmaniverous/entity-client-dynamodb
    Preparing search index...

    Class EntityClient<C, CF>

    Convenience wrapper around the AWS DynamoDB SDK in addition to BaseEntityClient functionality.

    This class exposes DynamoDBClient and DynamoDBDocument for direct access, and delegates high-level operations to small helper modules.

    For query operations, use the QueryBuilder class.

    Type Parameters

    Hierarchy

    Index

    Constructors

    Properties

    batchProcessOptions: NonNullable<
        BaseEntityClientOptions<CC, CF>["batchProcessOptions"],
    >

    Default batch process options.

    AWS SDK DynamoDBClient instance.

    AWS SDK DynamoDBDocument instance.

    entityManager: EntityManager<C, CF>

    EntityManager instance.

    logger: NonNullable<BaseEntityClientOptions<CC, CF>["logger"]>

    Injected logger object. Must support debug and error methods. Default: console

    tableName: string

    Table name.

    Methods

    • Get an item by primary key (token-aware).

      Type Parameters

      • ET extends string | number | symbol

        Entity token (use a literal to narrow the record type).

      • A extends readonly string[] | undefined = undefined

        Optional projection tuple (use as const to narrow the projected shape).

      Parameters

      Returns Promise<GetItemOutput<C, ET, A>>

      DynamoDB get output where Item (when present) is narrowed by token and projection tuple.

    • Batch-get multiple items by primary key (token-aware).

      Type Parameters

      • ET extends string | number | symbol

        Entity token (use a literal to narrow the record type).

      • A extends readonly string[] | undefined = undefined

        Optional projection tuple (use as const to narrow the projected shape).

      Parameters

      Returns Promise<GetItemsOutput<C, ET, A>>

      Items and raw batch outputs (including retry attempts).