I'm currently getting all entries in my database using the following:
const params = {
TableName: process.env.AWS_DYNAMODB_TABLE,
Select: "SPECIFIC_ATTRIBUTES",
AttributesToGet: ["SessionValue"]
};
dynamoClient.scan(params, function(err, data) {
console.log("GetItem succeeded:", JSON.stringify(data, null, 2));
});
The problem is I don't need everything in SessionValue which is a very large object. Instead I want to do something like:
const params = {
TableName: process.env.AWS_DYNAMODB_TABLE,
Select: "SPECIFIC_ATTRIBUTES",
AttributesToGet: ["SessionValue.wallet.keys"]
};
However running the above doesn't return anything. Is this possible with DynamoDb on nodejs?