This commit is contained in:
Chi Vinh Le
2018-08-31 17:40:38 +02:00
parent 7001510049
commit 0135cb9cc3
@@ -3,6 +3,7 @@ import { GQLMutationTypeResolver } from "talk-server/graph/tenant/schema/__gener
const Mutation: GQLMutationTypeResolver<void> = {
createComment: async (source, { input }, ctx) => {
const comment = await ctx.mutators.Comment.create(input);
// TODO: (cvle) tell wyatt to take a look at this :-)
return {
commentEdge: {
cursor: comment.created_at,