Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 11, 2022 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/425fae9891bfa8325f51d7ad7bcb4d29 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/425fae9891bfa8325f51d7ad7bcb4d29 to your computer and use it in GitHub Desktop.
public List<Product> list() throws IOException {
DynamoDBScanExpression scanExp = new DynamoDBScanExpression();
List<Product> results = this.mapper.scan(Product.class, scanExp);
for (Product p : results) {
logger.info("Products - list(): " + p.toString());
}
return results;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment