batchGetItem

Spec

async batchGetItem(
    tnmInput: TynamoBatchGetItemInput<TSource>
): Promise<TynamoBatchGetItemOutput<TSource>>

Unlike Dynamo, there is no limit.

Internally, they are split properly and processed in parallel.

Input

export interface TynamoBatchGetItemInput<TSource> {
    RequestItems: Partial<TSource>[];
    
    // Derived from DynamoDB.
    ReturnConsumedCapacity?: ReturnConsumedCapacity;
    ConsistentRead?: ConsistentRead;
    ProjectionExpression?: ProjectionExpression;
    ExpressionAttributeNames?: ExpressionAttributeNameMap;
}

Name

Type

Info

RequestItems

Partial<@DynamoEntity>[]

Primary key of item to read.

Unlisted param is derived from DynamoDB.

Check here for more information.

Output

Name

Type

Info

Responses

@DynamoEntity[]

Result of batchGet operation.

UnprocessedKeys

Partial<@DynamoEntity>[]

Primary key of failed item.

Unlisted param is derived from DynamoDB.

Check here for more information.

Example

Last updated

Was this helpful?