“Now, we’re ready to consume that code in the component…”
In fact, I don’t believe we are…
Having updated the signature of products_with_average_ratings from /0 to /1, we now appear to have a problem that we have not updated the call to it in assign_products_with_average_ratings in survey_results_live.ex
consequently, iex -S mix fails with a compile error.
It is updated to use the new signature a few paragraphs below here - but at this stage, an attempt to test drive the query ( at least one that involves using iex -S mix ) will not work