mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 11:29:55 +08:00
Merge branch 'next' into next-respect
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user