mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-18 14:54:23 +01:00
fix: broken posts api
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user