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

updates on lists #72

Open
rogueturnip opened this issue Jun 26, 2020 · 0 comments
Open

updates on lists #72

rogueturnip opened this issue Jun 26, 2020 · 0 comments

Comments

@rogueturnip
Copy link

Hi,

Great library, found it very useful in my project and I've been able to figure out most things by looking at the code, however, I'm stuck on one item.

I'm trying to do updates on an item that contains a List of tags. I've used this example:

// UpdateItem calls
await Card.primaryKey.update(12345, { likesCount: ["ADD", 1] }, { 
  condition: { id: attributeExists() } ,
});

as a basis for it but where I'm stuck is based on the Dynamo documents I should be able to do a tags: ["SET", "tag1", "tag2", "tag3"] and it will modify the list. When I do this it fails for me. I'm hoping there is something simple I'm missing.

Thanks!

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