Programming Phoenix LiveView B7: Page 163

In the sample iex session:

iex> Survey.create_rating(%{user_id: user.id, product_id: 1, stars: 5})

Then look at the results returned from Catalog.list_products_with_user_rating(user)
For Chess (product_id: 1) the stars field is 1 not 5 as set above.