I have an Ecto.Query and a Repo, such that I can call Repo.all(query) and get results. However, the results are not what I expect.
Ecto.Query
Repo
Repo.all(query)
A convenient helper method for printing raw SQL
def print_sql(queryable) do IO.inspect(Ecto.Adapters.SQL.to_sql(:all, Repo, queryable)) queryable end def list_new_foos() do Foo |> where([foo], foo.bar == 1337) |> limit(100) |> print_sql |> Repo.all() end