Cannot be cast to type :id in query:

def edit(conn, %{“id” => topic_id}) do

        topic = Repo.get(Topic, topic_id)  

        changeset = Topic.changeset(topic)

        render conn, "edit.html", changeset: changeset, topic: topic


Hi @coilardium, when you have an error you want help with, please always provide the complete error message and stack trace. It’s also helpful to provide any relevant ecto schemas. Finally, any relevant logs (which might include request parameters) are also critical.