Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Scan features #62

Closed
wants to merge 2 commits into from
Closed

Conversation

calvinlfer
Copy link

  • Added ExclusiveStartKey support
  • Scan returns the Count, LastEvaluatedKey and the Items

This is a solution to resolve #61

- Added ExclusiveStartKey support
- scan returns the Count, LastEvaluatedKey and the Items
result =
Items: dataTrans.fromDynamo(data.Items),
Count: data.Count,
LastEvaluatedKey: data.LastEvaluatedKey
Copy link
Owner

Choose a reason for hiding this comment

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

Haven't merged this yet because this signature is not in line with the rest of Dynasty.

I try to abstract the internals of Dynamo from the end user of Dynasty. Hence why all of the other API calls return objects with slightly different names and without capitalizing everything.

Also, this introduces a non-trivial breaking change to Scan. It used to return just an array of objects, now this new object with multiple keys.

Anyway, thanks for the changes! I will do my best to work with them and "Dynasty-ify" them before merging.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks a lot @victorquinn

@calvinlfer calvinlfer closed this Jul 11, 2017
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.

scan is not implemented correctly according to http://dynastyjs.com/#scan
2 participants