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

    Class QueryBuilder<C, ET, ITS, CF, K>

    Provides a fluent API for building a ShardQueryMap using a DynamoDB Document client.

    Type Parameters

    Hierarchy

    Index

    Constructors

    Properties

    entityClient: EntityClient

    EntityClient instance.

    entityToken: Extract<keyof Exactify<C["EntityMap"]>>

    Entity token.

    hashKeyToken: C["HashKey"] | C["ShardedKeys"]

    Hash key token.

    indexParamsMap: Record<ITS, IndexParams>

    Maps indexToken values to database platform-specific query parameters.

    pageKeyMap?: string

    Dehydrated page key map.

    Methods

    • Set a projection (attributes) for an index token.

      • Type-only: narrows K when called with a const tuple.
      • Runtime: populates ProjectionExpression for the index.

      Note: At query time, uniqueProperty and any explicit sort keys will be auto-included to preserve dedupe/sort invariants.

      Type Parameters

      • KAttr extends readonly string[]

      Parameters

      Returns QueryBuilder<C, ET, ITS, CF, KAttr>