mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
Adding rootquery support
This commit is contained in:
@@ -97,16 +97,11 @@ const singleCommentFragment = gql`
|
||||
edited
|
||||
editableUntil
|
||||
}
|
||||
${getSlotFragmentSpreads(slots, 'root')}
|
||||
${getSlotFragmentSpreads(slots, 'comment')}
|
||||
...${getDefinitionName(CommentBox.fragments.root)}
|
||||
...${getDefinitionName(CommentBox.fragments.comment)}
|
||||
...${getDefinitionName(ReplyBox.fragments.root)}
|
||||
...${getDefinitionName(ReplyBox.fragments.comment)}
|
||||
}
|
||||
${CommentBox.fragments.root}
|
||||
${CommentBox.fragments.comment}
|
||||
${ReplyBox.fragments.root}
|
||||
${ReplyBox.fragments.comment}
|
||||
`;
|
||||
|
||||
@@ -119,7 +114,11 @@ const withCommentFragments = withFragments({
|
||||
}
|
||||
}
|
||||
${getSlotFragmentSpreads(slots, 'root')}
|
||||
...${getDefinitionName(CommentBox.fragments.root)}
|
||||
...${getDefinitionName(ReplyBox.fragments.root)}
|
||||
}
|
||||
${CommentBox.fragments.root}
|
||||
${ReplyBox.fragments.root}
|
||||
`,
|
||||
asset: gql`
|
||||
fragment CoralEmbedStream_Comment_asset on Asset {
|
||||
|
||||
Reference in New Issue
Block a user