And where is the response generated? Repo.insert(bothinsert) would return an invalid changeset in case of an error. So you can flatten out the response where you transform the invalid changeset into this json, I assume?.
And where is the response generated? Repo.insert(bothinsert) would return an invalid changeset in case of an error. So you can flatten out the response where you transform the invalid changeset into this json, I assume?.