scan

Spec

async scan(
    tnmInput: TynamoScanInput<TSource> = {}
): Promise<TynamoScanOutput<TSource>>

Input

export interface TynamoScanInput<TSource> {
    ExclusiveStartKey?: TSource;
    ExpressionAttributeValues?: any;

    // Derived from DynamoDB.
    IndexName?: IndexName;
    Limit?: PositiveIntegerObject;
    Select?: Select;
    ReturnConsumedCapacity?: ReturnConsumedCapacity;
    TotalSegments?: ScanTotalSegments;
    Segment?: ScanSegment;
    ProjectionExpression?: ProjectionExpression;
    FilterExpression?: ConditionExpression;
    ExpressionAttributeNames?: ExpressionAttributeNameMap;
    ConsistentRead?: ConsistentRead;
}

Name

Type

Info

ExclusiveStartKey

@DynamoEntity

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

ExpressionAttributeValues

@DynamoEntity

Value used for expression.

Unlisted param is derived from DynamoDB.

Check here for more information.

Output

Name

Type

Info

Items

@DynamoEntity[]

Result of scan operation.

LastEvaluatedKey

@DynamoEntity

Primary key of the last item.

Unlisted param is derived from DynamoDB.

Check here for more information.

Example

Last updated

Was this helpful?