17 lines
404 B
TypeScript
17 lines
404 B
TypeScript
import { InputType, ArgsType, Field } from 'type-graphql';
|
|
|
|
import { GetManyArgs } from '@seed/graphql/Request';
|
|
import { PageBaseSchema } from './pages.schema';
|
|
|
|
@InputType()
|
|
export class NewPageInput extends PageBaseSchema {}
|
|
|
|
@InputType()
|
|
export class EditPageInput extends PageBaseSchema {
|
|
@Field({ nullable: true })
|
|
title: string;
|
|
}
|
|
|
|
@ArgsType()
|
|
export class PageArgs extends GetManyArgs {}
|