Combine Queries with or_where
Learn how to combine queries with or_where.
We'll cover the following
Ecto combines where
clauses with AND
By default, Ecto combines where
clauses with AND
. Let’s take two different query fragments, which use where
on the name
column of artists
, and see what happens when they’re put together. First, we have a query that looks for albums by Miles Davis.
Get hands-on with 1200+ tech skills courses.