Working with arrays #441
Unanswered
zyberpunker
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @zyberpunker, you use db.update(where('name') == 'Bob, lambda doc: doc['contents'].append('bmw')) The Can you verify this works for you? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to work with arrays in tinydb?
For example, how can I update an array with cars if I would like to add 'bmw' to the following?
{'name': 'Bob', 'cars': ['volvo', 'mazda']}
Beta Was this translation helpful? Give feedback.
All reactions