const dynamoDB = new AWS.DynamoDB.DocumentClient();
var params: any = {};
params.TableName = 'StockDailyCandles';
var key = { 'symbol': 'AAPL', 'datetime': '640590008898' }; // example timestamp
params.Key = key;
var x = await dynamoDB.get(params).promise();
return (x.Item ? true : false);
The composite key for the table is symbol, and "datetime"(which is simply a timestamp). Both columns are set as strings in dynamodb.
The error im receiving is : The provided key element does not match the schema