I want to retrieve items from the table where an attribute is equal to a value I specify using dynomodb.
The SQL equivalent is.
SELECT * FROM tokens where type='app_access_token`
Code:
copnst db = new Dynamodb.DocumentClient(credentials);
const params = {
TableName: 'TOKEN',
Key: {
type: 'app_access_token'
}
};
const response = db.get(params).promise();
But I believe this will only let me get via primary key, is that right?
No SQL WorkBench Structure