text: import * as dynamoDbLib from "./libs/dynamodb-lib";
  import { success, failure } from "./libs/response-lib";
  
  export async function main(event, context) {
    const params = {
      TableName: process.env.tableName
    };
  
    try {
      const result = await dynamoDbLib.call("query", params);
      if (result.Items) {
        // Return the retrieved item
        return success(result.Items);
      } else {
        return failure({ status: false, error: "Failed to fetch comments." });
      }
    } catch (e) {
      console.log(e);
      return failure({ status: false });
    }
  }
  