Mention Document.modify() in the documentation
This commit is contained in:
parent
f571a944c9
commit
5112fb777e
@ -491,8 +491,11 @@ Documents may be updated atomically by using the
|
|||||||
:meth:`~mongoengine.queryset.QuerySet.update_one`,
|
:meth:`~mongoengine.queryset.QuerySet.update_one`,
|
||||||
:meth:`~mongoengine.queryset.QuerySet.update` and
|
:meth:`~mongoengine.queryset.QuerySet.update` and
|
||||||
:meth:`~mongoengine.queryset.QuerySet.modify` methods on a
|
:meth:`~mongoengine.queryset.QuerySet.modify` methods on a
|
||||||
:meth:`~mongoengine.queryset.QuerySet`. There are several different "modifiers"
|
:class:`~mongoengine.queryset.QuerySet` or
|
||||||
that you may use with these methods:
|
:meth:`~mongoengine.Document.modify` and
|
||||||
|
:meth:`~mongoengine.Document.save` (with :attr:`save_condition` argument) on a
|
||||||
|
:class:`~mongoengine.Document`.
|
||||||
|
There are several different "modifiers" that you may use with these methods:
|
||||||
|
|
||||||
* ``set`` -- set a particular value
|
* ``set`` -- set a particular value
|
||||||
* ``unset`` -- delete a particular value (since MongoDB v1.3+)
|
* ``unset`` -- delete a particular value (since MongoDB v1.3+)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user