Prisma Schema
Hello doing feedback app, i am having problems to update my feedback info, i want to update name and questions.
On comments i show schema and current route.
2 Replies
Here not sure how to update it correctly, I using useArrayFields() on my frontend and I am sending data like:
That code updates feedback name as expected but not sure how to update questions so what i would want is to update the feedback to be what i send
This sounds abit hacky because i would like to keep history of questions (i am storing answers so those would be gone after update):
if you want to keep them shouldn't you update the model and change the reference action
and if you want to just update the questions' content can't you send in the payload in each question their id so you can update these ids