Skip to content

Commit

Permalink
Add note in docs about None filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
lyschoening committed Mar 16, 2016
1 parent 500a426 commit bcfa51d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ iendswith :class:`filters.IEndsWithFilter` Ends with (case-insensi
between :class:`filters.DateBetweenFilter` Ends with (case-insensitive) :class:`fields.Date`, :class:`fields.DateTime`, :class:`fields.DateString`, :class:`fields.DateTimeString`
============= ======================================== ============================================ ================================================================================================================================================================================================================================================

.. note::

:class:`filters.EqualFilter` uses both the keys ``'eq'`` and ``None``. This is so that you can write an equality comparison both ways:

::

GET /user?where={"name": "foo"}
GET /user?where={"name": {"$eq": "foo"}}


.. module:: flask_potion.filters

:class:`filters.BaseFilter`
Expand Down

0 comments on commit bcfa51d

Please sign in to comment.