Add some comments

This commit is contained in:
Chi Vinh Le
2018-09-24 20:16:29 +02:00
parent 6e743b9b75
commit acdcd16b4d
@@ -31,6 +31,9 @@ function sharedUpdater(
}
}
/**
* update integrates new comment into the CommentConnection.
*/
function update(store: RecordSourceSelectorProxy, input: CreateCommentInput) {
// Get the payload returned from the server.
const payload = store.getRootField("createComment")!;
@@ -69,6 +72,9 @@ function update(store: RecordSourceSelectorProxy, input: CreateCommentInput) {
}
}
/**
* localUpdate is like update but updates the `localReplies` endpoint.
*/
function localUpdate(
store: RecordSourceSelectorProxy,
input: CreateCommentInput