We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
new TransactUpdate(MyModel, partitionKey, rangeKey) .operations( update(`myList[0]`).incrementBy(42) )
expected behaviour: should generate UpdateExpression as follows:
{ type: 'SET', statement: '#myList[0] = #myList[0] + :myList_at_0', attributeNames: { '#myList': 'myList' }, attributeValues: { ':myList_at_0': { N: '42' } }, }
actual behaviour: throws Error: Given value must be either Array or Set 42 only updateFunction set() works with indexes in attribute path
Error: Given value must be either Array or Set 42
set()
The text was updated successfully, but these errors were encountered:
fix(update-expression-builder): index in attribute path
9207355
closes #200
Merge branch 'master' into #200-array-position-in-attribute-path
5ab0c66
Merge pull request #201 from shiftcode/#200-array-position-in-attribu…
9eb6569
…te-path fix(update-expression-builder): index in attribute path
🎉 This issue has been resolved in version 5.2.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
simonmumenthaler
Successfully merging a pull request may close this issue.
expected behaviour:
should generate UpdateExpression as follows:
actual behaviour:
throws
Error: Given value must be either Array or Set 42
only updateFunction
set()
works with indexes in attribute pathThe text was updated successfully, but these errors were encountered: