Skip to content

Commit

Permalink
Document e.all
Browse files Browse the repository at this point in the history
  • Loading branch information
raddevon committed Sep 14, 2023
1 parent 07e3058 commit 53ac72d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,25 @@ takes a set.
),
}));
The conditions passed to ``e.any`` can be composed just like before.
Similarly to ``e.any``, ``e.all`` can replace multiple conditions strung
together with ``and``.
.. code-block:: typescript
e.select(e.Movie, movie => ({
id: true,
title: true,
filter: e.all(
e.set(
e.op(movie.title, "ilike", "captain%")
e.op(movie.title, "ilike", "%america%")
e.op(movie.title, "ilike", "%:%")
)
),
}));
The conditions passed to ``e.any`` or ``e.all`` can be composed just like
before.
.. code-block:: typescript
Expand Down

0 comments on commit 53ac72d

Please sign in to comment.