Merge branch 'next' into next-respect

This commit is contained in:
Wyatt Johnson
2018-09-11 22:50:37 +00:00
committed by GitHub
129 changed files with 5410 additions and 1352 deletions
@@ -9,8 +9,11 @@ const Mutation: GQLMutationTypeResolver<void> = {
const comment = await ctx.mutators.Comment.create(input);
return {
edge: {
// FIXME: (wyattjoh) when we're using a replies/respect sort, it is index based instead of date based, needs some work!
cursor: comment.created_at,
// (cvle)
// Depending on the sort we can't determine the accurate cursor
// in a performant way, so we return null instead.
// It seems that Relay does not directly use this value...
cursor: null,
node: comment,
},
clientMutationId: input.clientMutationId,
@@ -840,7 +840,7 @@ type CommentEdge {
"""
"""
cursor: Cursor!
cursor: Cursor
}
"""