Closed clarkie closed 6 years ago
I encountered this same problem working on #39. _.merge
doesn't work on this because the two values are strings (instead of objects). I will look at what I did on #39 and see if it can solve this too.
If you set { overwrite: false }
, then .create()
should only work if the item does not exist. But how can you have a ConditionExpression
if the item doesn't exist? I'm not sure I understand the reason for specifying overwrite to false for a conditional .create()
.
@clarkie what do you want to do with this one? I would like to close the old issues that aren't getting attention.
Closing as stale.
Assume that it is necessary to specify a Condition Expression for create and also the option overwrite:
Then, ConditionExpression is not set correctly because of the following line in file table.js:
The merge overwrites the ConditionExpression and instead of
"(id <> :id) AND #n <> :x
, you get#n <> :x
. The lodash merge doesn't merge correctly the ConfitionExpression. And the following error is issue by AWS SDK: