I am struggling with incrementing a number property value of an item already saved in my table on DynamoDB my code currently is:
AWSDynamoDBUpdateIte
There are a couple of things. key
is defined as follows:
@property (nonatomic, strong) NSDictionary<NSString *, AWSDynamoDBAttributeValue *> * _Nullable key;
You need to replace @"KeyValue"
with an instance of AWSDynamoDBAttributeValue
.
expressionAttributeValues
is defined as follows:
@property (nonatomic, strong) NSDictionary<NSString *, AWSDynamoDBAttributeValue *> * _Nullable expressionAttributeValues;
You need to replace @1
with an instance of AWSDynamoDBAttributeValue
.
Make sure to use the latest version of the AWS SDK for iOS so that you can see the generics annotations in the header file. It helps you construct the proper request object.