I have a model that looks like this:
class TestDoc(Document):
name = StringField()
friends = ListField(StringField())
address_book = DictField()
And I wish to atomically update the address_book field whenever the friends list changes. How can I modify both fields in an atomic operation? I can't find any modifier in the documentation:
https://mongoengine-odm.readthedocs.org/en/latest/guide/querying.html#atomic-updates
that makes atomic update for dictionaries. Thanks!