feat: 文章列表和内容优化。

This commit is contained in:
Ivan Li
2021-07-03 09:55:27 +08:00
parent fd314b650b
commit b1fcee8e4e
8 changed files with 129 additions and 9 deletions

View File

@@ -21,6 +21,8 @@ export type Article = {
content: Scalars['String'];
publishedAt?: Maybe<Scalars['DateTime']>;
tags: Array<Scalars['String']>;
html: Scalars['String'];
description?: Maybe<Scalars['String']>;
};
export type CreateArticleInput = {

View File

@@ -5,7 +5,7 @@ export const ARTICLE_FOR_HOME = gql`
articles {
id
title
content
description
publishedAt
}
}
@@ -16,7 +16,8 @@ export const ARTICLE = gql`
article(id: $id) {
id
title
content
description
html
publishedAt
}
}