Save modifications to a relationship
In my edit page for posts, I pull in the authors information. I want to save any changes to the author. the author is a relationship with the post. I am using strapi as my data provider. I have the form set up, I am pulling the authors information but when I hit save none of the authors information saves only the edits made to the post.
2 Replies
Hi @erekyu. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Sorry @erekyu, I am experiencing especially high traffic right now, please try again. :technologist:
deep-jade•2y ago
Hey @erekyu It may be an API related issue. You can try to update Author with
useUpdate
.
https://refine.dev/docs/api-reference/core/hooks/data/useUpdate/useUpdate | refine
useUpdate is an extended version of TanStack Query's useMutation. It supports all the features of useMutation and adds some extra features.