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
Type inference for conditional update #487
Comments
Might be related to #367 @naorpeled |
I think I found out what the issue is, |
Hi, even in V0.9.2 I still don't get the Attributes type correctly when my update call looks like this: const result = await UserEntity.update(
{
id,
name,
email,
},
{ conditions: { attr: 'pk', exists: false }, returnValues: 'ALL_NEW' },
); Is there any news on this? |
Looks like @naorpeled started a draft but didn't finish |
Hey guys, Sorry for disappearing, had a lot of things to deal with IRL 😢 |
Looking to run a conditional update based on the existence of a particular attribute. I expect the type of
updatedProgress
to match the full entity, but the inferred type is an object which only includesSK
. The object returned does include all properties (contrary to the type inference).This version has the correct expected return type.
This version does not.
The text was updated successfully, but these errors were encountered: