Skip to content

Commit 20f23d2

Browse files
committed
fix: editPost query result
1 parent 914e987 commit 20f23d2

File tree

1 file changed

+9
-57
lines changed

1 file changed

+9
-57
lines changed

src/lib/graphql/post.ts

Lines changed: 9 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -594,72 +594,24 @@ export const EDIT_POST = gql`
594594
token: $token
595595
) {
596596
id
597-
title
598-
released_at
599-
updated_at
600-
tags
601-
body
602-
short_description
603-
is_markdown
604-
is_private
605-
is_temp
606-
thumbnail
607-
comments_count
608-
url_slug
609597
user {
610598
id
611599
username
612-
profile {
613-
id
614-
display_name
615-
thumbnail
616-
short_bio
617-
}
618-
velog_config {
619-
title
620-
}
621-
}
622-
comments {
623-
id
624-
user {
625-
id
626-
username
627-
profile {
628-
id
629-
thumbnail
630-
display_name
631-
}
632-
}
633-
text
634-
replies_count
635-
level
636-
created_at
637-
level
638-
deleted
639-
}
640-
series {
641-
id
642-
name
643-
url_slug
644-
series_posts {
645-
id
646-
post {
647-
id
648-
title
649-
url_slug
650-
user {
651-
id
652-
username
653-
}
654-
}
655-
}
656600
}
601+
url_slug
657602
}
658603
}
659604
`;
660605

661606
export type EditPostResult = {
662-
editPost: SinglePost;
607+
editPost: {
608+
id: string;
609+
user: {
610+
id: string;
611+
username: string;
612+
};
613+
url_slug: string;
614+
};
663615
};
664616

665617
export const WRITE_COMMENT = gql`

0 commit comments

Comments
 (0)