mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-19 07:14:22 +01:00
fix: broken posts api
This commit is contained in:
@@ -72,7 +72,7 @@ const Story = objectType({
|
|||||||
t.string('cover_image');
|
t.string('cover_image');
|
||||||
t.nonNull.list.nonNull.field('comments', {
|
t.nonNull.list.nonNull.field('comments', {
|
||||||
type: "PostComment",
|
type: "PostComment",
|
||||||
resolve: (parent) => prisma.story.findUnique({ where: { id: parent.id } }).comments()
|
resolve: (parent) => []
|
||||||
});
|
});
|
||||||
t.nonNull.list.nonNull.field('tags', {
|
t.nonNull.list.nonNull.field('tags', {
|
||||||
type: "Tag",
|
type: "Tag",
|
||||||
|
|||||||
Reference in New Issue
Block a user