Replies: 1 comment 1 reply
-
Let me look into this, I agree at first glance 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, I love this library! It's amazing. I tried others, and there is no comparison.
So, to my question... I've been trying to use the
upsert
mechanism for a few things, and I'm confused about theupsert
return type. Whenever I make theupsert
call, the data type isPartial
, which confuses me. Shouldn't this ALWAYS return a result likecreate
?Here is a playground link to show what I'm talking about.
This may be the expected behavior since I'm new to DynamoDB and expect it to work like the
create
method. Is it partial because it doesn't perform a query (just the update), and thus, it can't know what the entire object looks like? If so, that makes sense. It might help to outline that in the documentation.Beta Was this translation helpful? Give feedback.
All reactions