Incrementing Number Property in AWS DynamoDB Objective C

后端 未结 1 1366
终归单人心
终归单人心 2021-01-15 14:29

I am struggling with incrementing a number property value of an item already saved in my table on DynamoDB my code currently is:

        AWSDynamoDBUpdateIte         


        
相关标签:
1条回答
  • 2021-01-15 14:36

    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.

    0 讨论(0)
提交回复
热议问题