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

Remove attribute from Object #118

Open
Jonas1200 opened this issue May 6, 2019 · 0 comments
Open

Remove attribute from Object #118

Jonas1200 opened this issue May 6, 2019 · 0 comments

Comments

@Jonas1200
Copy link

Example Data:
let data = [{userid: "user1",someAttribute: "removeThis"},{userid: "user2",someAttribute: "value"}]
Then I want to remove an attribute from one User:
userTable().remove({userid: "user1", range: "someAttribute"})
userTable().update(userid: "user1",{ someAttribute: ""}) Does not work cause dynamodb does not allow empty string in database
But both does not work.
I want the following result:
let data = [{userid: "user1"},{userid: "user2",someAttribute: "value"}]

@Jonas1200 Jonas1200 changed the title Remove attribute from hash Remove attribute from Object May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant