[CORL-420] Upgrade Relay (#2346)

* chore: upgrade Relay

* fix: fix errors

* fix: snapshot

* fix: relay prefix

* fix: fragment spec error
This commit is contained in:
Vinh
2019-06-07 21:42:26 +00:00
committed by Wyatt Johnson
parent ed4e5fa2a8
commit d4b99a2a57
38 changed files with 682 additions and 929 deletions
@@ -47,18 +47,12 @@ const RejectCommentMutation = createMutation(
input: {
commentID: input.commentID,
commentRevisionID: input.commentRevisionID,
clientMutationId: clientMutationId.toString(),
},
},
optimisticResponse: {
rejectComment: {
comment: {
id: input.commentID,
status: "REJECTED",
},
clientMutationId: (clientMutationId++).toString(),
},
},
optimisticUpdater: store => {
store.get(input.commentID)!.setValue("REJECTED", "status");
},
updater: store => {
const connections = [
getQueueConnection(store, "reported", input.storyID),