diff --git a/docs/docs/use-mutation.md b/docs/docs/use-mutation.md index 4e2bc43..a4e3f57 100644 --- a/docs/docs/use-mutation.md +++ b/docs/docs/use-mutation.md @@ -95,7 +95,7 @@ useMutation(BlockUser, { useMutation(Unfriend, { connectionUpdates: [ - ({ variables, remove }) => + ({ data, variables, remove }) => Option.fromNullable(data.unfriend).map(() => remove(friends, [variables.id]), ),