You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 fromAWSDynamoDBObjectMapper
likeLoad
orQuery
I immediately get the properly mappedAWSDynamoDBObjectModel
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
inAWSDynamoDBObjectMapper
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.
The text was updated successfully, but these errors were encountered: