Title: Programming Phoenix LiveView: (page 221)
In the part to open up IEx with iex -S mix
and do the test drive of the query.
It was needed to added these alias on the Pento.Catalog.Product.Query
module:
alias Pento.Survey.{Rating, Demographic}
alias Pento.Accounts.User
Because it complains to:
** (UndefinedFunctionError) function User.__schema__/1 is undefined (module User is not available)
User.__schema__(:source)
(ecto 3.6.1) lib/ecto/repo/queryable.ex:208: Ecto.Repo.Queryable.execute/4
(ecto 3.6.1) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
and after to add those alias the query worked!