feat: tags list.

This commit is contained in:
Ivan Li
2021-07-24 10:33:32 +08:00
parent 9490d874a9
commit c5ca8819e7
7 changed files with 613 additions and 3 deletions

View File

@@ -32,6 +32,10 @@ export type CreateArticleInput = {
tags: Array<Scalars['String']>;
};
export type CreateTagInput = {
name: Scalars['String'];
};
export type Hello = {
__typename?: 'Hello';
@@ -43,6 +47,9 @@ export type Mutation = {
createArticle: Article;
updateArticle: Article;
removeArticle: Scalars['Int'];
createTag: Tag;
updateTag: Tag;
removeTag: Tag;
};
@@ -60,11 +67,28 @@ export type MutationRemoveArticleArgs = {
id: Scalars['String'];
};
export type MutationCreateTagArgs = {
createTagInput: CreateTagInput;
};
export type MutationUpdateTagArgs = {
updateTagInput: UpdateTagInput;
};
export type MutationRemoveTagArgs = {
id: Scalars['String'];
};
export type Query = {
__typename?: 'Query';
hello: Hello;
articles: Array<Article>;
article: Article;
tags: Array<Tag>;
tag: Tag;
};
@@ -72,6 +96,17 @@ export type QueryArticleArgs = {
id: Scalars['String'];
};
export type QueryTagArgs = {
id: Scalars['String'];
};
export type Tag = {
__typename?: 'Tag';
id: Scalars['ID'];
name: Scalars['String'];
};
export type UpdateArticleInput = {
title?: Maybe<Scalars['String']>;
content?: Maybe<Scalars['String']>;
@@ -79,3 +114,8 @@ export type UpdateArticleInput = {
tags?: Maybe<Array<Scalars['String']>>;
id: Scalars['String'];
};
export type UpdateTagInput = {
name?: Maybe<Scalars['String']>;
id: Scalars['String'];
};