How to modify apollo cache after mutation
Mar 6, 2022 · 1 min read · const [createComment, {data, loading, error}] = useMutation(CREATE_COMMENT, { update: (cache, mutationRes) => { const newComment = mutationRes.data.createComment; // const data = cache.readQuery({ // query: GET_COMMENTS, ...
Join discussion