Protocol Ecto.Queryable not implemented for Item of type Atom

The code you’ve shown correctly aliases Product, but that’s not what the error message is about!

My guess is that there’s a has_many :categories, Category in product.ex but no alias Hello.Catalog.Category.