Skip to content
Myr

Update mongoengine.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by zhuangzhuang · committed by David Lord · parent 165af0a · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/mongoengine.rst+1 added-1 removed
78 unmodified lines
7980Use the class ``objects`` attribute to make queries. A keyword argument81looks for an equal value on the field. ::8283 bttf = Movies.objects(title="Back To The Future").get_or_404()83 bttf = Movie.objects(title="Back To The Future").get_or_404()8485Query operators may be used by concatenating them with the field name86using a double-underscore. ``objects``, and queries returned by87calling it, are iterable. ::
16 unmodified lines