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
Update using dashes #94
Comments
Good catch. Looks like I'm just taking the attribute name and prefixing it with a |
I'm also hitting the same issue, but due to using spaces not dashes. For example, when running this:
...you get the error:
PR #96 looks like a good option, but it requires extra logic and I sorta feel like this use-case should work out of the box. @jeremydaly Did you have an implementation in mind for this, or were you intending to merge #96? I'm happy to assist, either creating an alternative PR or updating the existing one? Brilliant library BTW! Really enjoying using it. |
I'm also facing the same issue when using FooEntity.update({
dictionary: {
$set: {
'b2333002-55be-47b8-8fbb-2e1ed19a5ab3': 'bar',
},
},
}) |
I'm also facing the same issue. Any update on this ?? |
This update will fail as the update method will generate an ExpressionAttributeName containing
{ '#field-with-dash': 'field-with-dash' }
and the dynamoDb client will throw an errorInvalid ExpressionAttributeName key
as it doesn't handle the#field-with-dash
key... 😞The text was updated successfully, but these errors were encountered: