result = user |> Repo.preload([:photos])
cannot encode association :location from Foodhunt.Photo to JSON because the association was not loaded. Please make sure you have preloaded the association or remove it from the data to be encoded
result = user |> Repo.preload([:photos, :location])
schema Foodhunt.User does not have association :location