Skip to content

Conversation

@pozeus
Copy link
Contributor

@pozeus pozeus commented Aug 26, 2020

Adding code for GET, LIST and PUT operations as well as updating readme.md

Copy link
Contributor

@eahefnawy eahefnawy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that @pozeus ... Added just a small request.


module.exports.list = (event, context, callback) => {
// fetch all todos from the database
dynamoDb.scan(params, (error, result) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we really shouldn't be advocating using scan. I understand this is just an example though. Could you add a quick comment clarifying that in production query should be used instead?

Adding comment about pref. using query instead of scan to improve response time.
Copy link
Contributor

@eahefnawy eahefnawy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @pozeus 🙏

@eahefnawy eahefnawy merged commit 9eef07b into serverless:master Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants