fix: broken posts api

This commit is contained in:
MTG2000
2022-07-20 19:12:07 +03:00
parent 2a15f8259a
commit 7cc990e4e8

View File

@@ -72,7 +72,7 @@ const Story = objectType({
t.string('cover_image');
t.nonNull.list.nonNull.field('comments', {
type: "PostComment",
resolve: (parent) => prisma.story.findUnique({ where: { id: parent.id } }).comments()
resolve: (parent) => []
});
t.nonNull.list.nonNull.field('tags', {
type: "Tag",