Adding optimisticresponse for deleteCommentReaction

This commit is contained in:
Belén Curcio
2018-10-02 13:22:22 -03:00
parent 7948ed72ee
commit b53aa354ad
@@ -31,6 +31,14 @@ function commit(environment: Environment, input: CreateCommentReactionInput) {
clientMutationId: clientMutationId.toString(),
},
},
optimisticResponse: {
deleteCommentReaction: {
comment: {
id: input.commentID,
},
clientMutationId: clientMutationId.toString(),
},
} as any, // TODO: (cvle) generated types should contain one for the optimistic response.
});
}