DynamoDbResultSet

DynamoDbResultSet

new DynamoDbResultSet(data)

The result data model of DynamoDB SCAN or Query.

Source:
Parameters:
Name Type Description
data object

The rensponse object from DynamoDB API SCAN and QUERY.

Methods

(static) printScanResult(data, sortItemPath, sortDesc) → {undefined}

Print scan or query result to console.

Source:
Parameters:
Name Type Description
data object

The response object from DynamoDB API SCAN and QUERY.

sortItemPath string

An attribute path name of item to sort.

sortDesc boolean

(Optional) Specify true to sort items descent.

Returns:
Type:
undefined

getItemAt(rowIndex) → {object}

Get an item converted to the native object from DynamoDB Map Data by index of items.

Source:
Parameters:
Name Type Description
rowIndex integer

The index of item in Items.

Returns:
Type:
object

returns item converted to object.

getItems() → {Array.<object>}

Get an item converted to the native object from DynamoDB Map Data

Source:
Returns:
Type:
Array.<object>

returns array of object converted.

print(sortItemPath, sortDesc) → {undefined}

Print scan or query result to console.

Source:
Parameters:
Name Type Description
sortItemPath string

An attribute path name of item to sort.

sortDesc boolean

(Optional) Specify true to sort items descent.

Returns:
Type:
undefined