QuerySet.modify() method to provide find_and_modify() like behaviour

This commit is contained in:
Dmitry Konishchev
2014-06-26 16:18:42 +01:00
committed by Ross Lawley
parent 4d374712de
commit 11724aa555
4 changed files with 160 additions and 2 deletions

View File

@@ -488,8 +488,9 @@ calling it with keyword arguments::
Atomic updates
==============
Documents may be updated atomically by using the
:meth:`~mongoengine.queryset.QuerySet.update_one` and
:meth:`~mongoengine.queryset.QuerySet.update` methods on a
:meth:`~mongoengine.queryset.QuerySet.update_one`,
:meth:`~mongoengine.queryset.QuerySet.update` and
:meth:`~mongoengine.queryset.QuerySet.modify` methods on a
:meth:`~mongoengine.queryset.QuerySet`. There are several different "modifiers"
that you may use with these methods: