metropolis/src/items/dto/edit-item.input.ts

17 lines
296 B
TypeScript
Raw Normal View History

2021-07-30 19:05:51 +02:00
import { Field, ID, InputType } from '@nestjs/graphql';
@InputType()
export class EditItemInput {
@Field((type) => ID)
id: string;
@Field({ nullable: true })
name?: string;
@Field({ nullable: true })
notes?: string;
@Field((type) => ID, { nullable: true })
parent?: string;
}