Skip to content

Adding an item to a deeply nested array using $ADD #1425

Answered by andrewda
testflyjets asked this question in Q&A
Discussion options

You must be logged in to vote

This is currently a limitation in dynamoose. We had a discussion about this here #665 (comment), but I haven't had the time to finish figuring out the implementation. For now I suggest using aws-sdk directly, and doing something like:

SET modules[0].completedLessons = list_append(modules[0].completedLessons, :value)

I've still needed this occasionally as well, so I may try to find the time to finally take a stab at it in the next few weeks. When I do make progress, I'll be sure to update both on that issue as well as here!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@testflyjets
Comment options

@testflyjets
Comment options

Answer selected by testflyjets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants