coforma / swift-tech-challenge

MIT License
0 stars 0 forks source link

Add scan function to dynamodb lib #55

Closed gmrabian closed 6 months ago

gmrabian commented 6 months ago

Summary

Fixes #24

Type of change

How To Test

Temporarily modify the PageHeader file as follows

import dynamoClient from "../../utils/dynamodb-lib";

export const PageHeader = async () => {
  const params = {
    TableName: "institutions",
    Limit: 10,
  };
  const result = await dynamoClient.singleScan(params);
  console.log("result", result);
  console.log("items", result.Items);
  console.log("length of items", result?.Items?.length);

Checklist:

codeclimate[bot] commented 6 months ago

Code Climate has analyzed commit c982c2a4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 45.4% (1.6% change).

View more on Code Climate.