Open ebeltran1981 opened 4 years ago
I ran into this same issue, managed to work around it by setting the DynamoDB Client's params to always inject ReturnConsumedCapacity.
export const dynamodbMapper = new DataMapper({
client: new DynamoDB({region: 'ap-southeast-2', params: {ReturnConsumedCapacity: "TOTAL"}}),
tableNamePrefix: 'dev_',
});
See aws sdk docs
Hello,
Using the native
DynamoDB
client I am able to get the consumed capacity of a Get, Put, Scan, Query, etc... but using the mapper I am not able to find how to pass theReturnConsumedCapacity = "TOTAL"
option.Consider the following function:
Is this functionality supported? if so, need help on how to implemented.
Thanks!