getItem

Spec

async getItem<TSource>(
    tnmInput: TynamoGetItemInput<TSource>
): Promise<TynamoGetItemOutput<TSource>>;

Input

export interface TynamoGetItemInput<TSource> {
    Key: TSource;
    
    // Derived from DynamoDB.
    ConsistentRead?: ConsistentRead;
    ReturnConsumedCapacity?: ReturnConsumedCapacity;
    ProjectionExpression?: ProjectionExpression;
    ExpressionAttributeNames?: ExpressionAttributeNameMap;
}

Name

Type

Info

Key

@DynamoEntity

The key of item.

Unlisted param is derived from DynamoDB.

Check here for more information.

Output

Name

Type

Info

Item

@DynamoEntity

Result of getItem operation.

Unlisted param is derived from GetItemOutput.

Check here for more information.

Example

Last updated

Was this helpful?