Unable to use expressions to add to string set in DynamoDB #2081
Unanswered
pontuspalmenas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the v1 SDK, it was possible to update an item to add a value to a set, eg. string to a string set, by using the .setSS function of AttributeValue (aws/aws-sdk-go#1990).
I have tried using a slice directly with expression:
This gives the error
ValidationException: Invalid UpdateExpression: Incorrect operand type for operator or function; operator: ADD, operand type: LIST, typeSet: ALLOWED_FOR_ADD_OPERAND
I have tried using the types.AttributeValueMemberSS:
This gives me the error
ValidationException: The provided key element does not match the schema: errorString
I don't believe this is possible in v2. Please correct me if I'm wrong.
Beta Was this translation helpful? Give feedback.
All reactions