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

Does Dynalite support atomic counters #157

Open
cfredhart opened this issue Aug 31, 2022 · 0 comments
Open

Does Dynalite support atomic counters #157

cfredhart opened this issue Aug 31, 2022 · 0 comments

Comments

@cfredhart
Copy link

Does Dynalite support atomic counters? I am getting an error when calling the update using the DocumentClient interface. _uc is supposed to be an update counter for the record, but I get an error. Sets can contain string, number, or binary values. It seems to be treating _uc as a set and not an integer.

          "params": {
            "ExpressionAttributeNames": {
              "#_uc": "_uc",
              "#a": "Email",
            },
            "ExpressionAttributeValues": {
              ":_uc": 1,
              ":a": "[email protected]",
            },
            "Key": {
              "transaction_id": "subscriptionNumber:1234"
            },
            "ReturnValues": "ALL_NEW",
            "TableName": "mytable",
            "UpdateExpression": "set #a=:a add #_uc :_uc"
          }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant