Adding rootquery support

This commit is contained in:
okbel
2018-03-01 16:39:58 -03:00
parent 300e518c2d
commit e055a3e4d4
@@ -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 {