You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't conditionally update custom mapped list of strings with empty value #335
Seems like this is due to line 310 in condition-expression-builder.ts. The validator throws if the conditional values length is falsey. Why is this needed?
This problem extends to all actions containing empty arrays, not just condition expressions. I can't see any reason deepFilter doesn't allow empty arrays. They are 100% valid in dynamoDB. Not sure this repo is actively maintained anymore though. Forked repo and fixed here: Fantom-App#1
Activity
LucasDachman commentedon Oct 19, 2020
Seems like this is due to line 310 in
condition-expression-builder.ts. The validator throws if the conditional values length is falsey. Why is this needed?Also empty arrays are striped by the
deepFilterinbuildFilterExpressionincondition-expression-builder.ts. Is this necessary?This is legal to DynamoDB
danielblignaut commentedon Jan 21, 2021
any progress on this issue? I'm experiencing the same problem which leads to an issue with GraphQL resolvers with nonNull lists
LucasDachman commentedon Jan 21, 2021
I ended up just using the using the dynamodb client directly for this specific use case.
stvngrsh commentedon Oct 25, 2021
This problem extends to all actions containing empty arrays, not just condition expressions. I can't see any reason
deepFilterdoesn't allow empty arrays. They are 100% valid in dynamoDB. Not sure this repo is actively maintained anymore though. Forked repo and fixed here: Fantom-App#1fix(update): fix setting empty string arrays when running updates
TanjaBayer commentedon Feb 2, 2024
Any changes the suggested fix will be added into this repo? Would be great 😄
michaelwittwer commentedon May 13, 2025
@LucasDachman @stvngrsh @TanjaBayer A fix for this is released on the
nextstream ->^8.0.0-next.7#431 (comment)