Working (?) courses get func

This commit is contained in:
Ben Ramey
2018-09-18 07:34:12 -05:00
parent 071038b7f8
commit 7710a4ef14
3 changed files with 35 additions and 15 deletions

View File

@@ -21,6 +21,12 @@ const get = async (tableName, keyMap) => {
return res && res.Item;
};
const scan = async (tableName) => {
const res = await dynamoClient.scan({
TableName: tableName
}).promise();
};
const queryByID = async (tableName, idKeyName, id) => {
// querying by id can be used when we are querying a table
// that has a sortKey, but we don't need to use the sortKey