-
Notifications
You must be signed in to change notification settings - Fork 57
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
Create in TransactionWrite does not return new entity #226
Comments
Hi @Talljoe 👋 I agree in this case it would be nice to receive back the item you created, similar to the |
I’m still relatively new to DynamoDB, so it is entirely possible I have missed something, but it seems that Maybe the types could be improved so that That said, it would be nice to get at default values that ElectroDB generates as part of a successful |
Describe the bug
I ported some code that uses
create
to the new Transaction API and the result fromgo
does not include the same information. I would expect my created entity (with all the defaults and sets run) to be returned upon success.ElectroDB Version
2.5.0
DynamoDB Client Version
3.296.0
ElectroDB Playground Link
Link
Code Example
Expected behavior
In a transaction context,
data[n].item
should contain the same content asitem.data
in a non-transaction context.Errors
Additional context
Logging:
Without Transaction:
With Transaction:
The text was updated successfully, but these errors were encountered: