Skip to content
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

set* methods for fields of type List do not cause the specified value to be persisted unless deltas is false #70

Open
killergerbah opened this issue Jul 12, 2023 · 0 comments
Labels

Comments

@killergerbah
Copy link
Contributor

Given a field with this configuration:

            {
              "name": "stringList",
              "dynamoName": "stringList",
              "type": "List",
              "elementType": "String"
            }

The generated setStringList method will set the in-memory state of the *Updates object, but the list is not actually persisted since only the list adds are used when generating the Dynamo DB update expression. On the other hand, setting deltas: false will cause values passed to setStringList to be persisted. It may be less confusing if setStringList is not generated at all in the case of deltas: true.

@killergerbah killergerbah changed the title set* methods for fields of type List do not cost the specified value to be persisted unless deltas is false set* methods for fields of type List do not cause the specified value to be persisted unless deltas is false Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant