Skip to content

Remove attribute from Object #118

@Jonas1200

Description

@Jonas1200

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"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions