Working (?) courses get func
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user