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

Support BatchGetItem in AWSDynamoDBObjectMapper #204

Closed
colkilgore opened this issue Jun 19, 2015 · 4 comments
Closed

Support BatchGetItem in AWSDynamoDBObjectMapper #204

colkilgore opened this issue Jun 19, 2015 · 4 comments
Labels
feature-request Request a new feature

Comments

@colkilgore
Copy link

I'm having problems with trying to map to my database a response from batchGetItem. The response is not a typical dictionary that I could easily map to database, but a structure that has also the datatypes included. When I use the methods from AWSDynamoDBObjectMapper like Load or Query I immediately get the properly mapped AWSDynamoDBObjectModel subclass that I created which is what I'm looking for.

Example of what I'm getting
"Item": { "Year": {"S": "1985"}, "Fans": {"SS": ["Fox","Lloyd"]}, "Name": {"S": "Back To The Future"}, "Rating": {"S": "****"} }

What I would like to get:
"Item": { "Year": "1985", "Fans": ["Fox","Lloyd"], "Name": "Back To The Future", "Rating": "****" }

Are there plans to support batchGetItem in AWSDynamoDBObjectMapper to receive the mapped objects?

Or is there an easy way to parse the differently structured dictionary? I see that there is a private method called - (NSDictionary *)removeAttributes:(NSDictionary *)item mapperVersion:(AWSDynamoDBObjectMapperVersion)mapperVersion that could be useful for this kind of thing, but there is no way to access it.

Maybe there is something I'm missing.

@yosuke-matsuda yosuke-matsuda added the feature-request Request a new feature label Jun 19, 2015
@yosuke-matsuda
Copy link
Contributor

We do not have an immediate plan to support batchGetItem in AWSDynamoDBObjectMapper. I share your request with my team for future considerations.

@helloniklas
Copy link

Seems this would be essential to have a useful API. How is one otherwise meant to use this SDK.

@stale
Copy link

stale bot commented Apr 11, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix-stale label Apr 11, 2018
@stale
Copy link

stale bot commented Apr 18, 2018

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

@stale stale bot closed this as completed Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants