14 lines
238 B
TypeScript
14 lines
238 B
TypeScript
import { Field, ID, InputType } from '@nestjs/graphql';
|
|
|
|
@InputType()
|
|
export class NewItemInput {
|
|
@Field()
|
|
name: string;
|
|
|
|
@Field({ nullable: true })
|
|
notes?: string;
|
|
|
|
@Field((type) => ID, { nullable: true })
|
|
parent?: number;
|
|
}
|