You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"}]
The text was updated successfully, but these errors were encountered:
Jonas1200
changed the title
Remove attribute from hash
Remove attribute from Object
May 6, 2019
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 databaseBut both does not work.
I want the following result:
let data = [{userid: "user1"},{userid: "user2",someAttribute: "value"}]
The text was updated successfully, but these errors were encountered: