     changeset = Question.changeset(%Question{}, question_params)
 
     case insert_question_and_tags(changeset) do
-      {:ok, question, tags} ->
+      {:ok, question} ->
         question = question
-        |> Map.put(:tags, tags)
+        |> Repo.preload(:question_tags)
 
         conn
         |> put_status(:created)

        end
    end

    Enum.map(tags_id, tag_id_to_changeset)
    |> Enum.reduce({:ok, question, []}, insert_changeset)
  end
end


  def update(conn, question_params) do
    question = conn.assigns[:question]
    |> Repo.preload(:question_tags)

    changeset = Question.changeset(
      Map.merge(question, %{tags: question.question_tags}),
      question_params)

    case Repo.update(changeset) do
      {:ok, question} ->
