metropolis/src/items/items.model.ts

16 lines
294 B
TypeScript
Raw Normal View History

2021-07-08 19:40:14 +02:00
import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType('Item', {
description: 'Either the inventored thing or a box containing them',
})
export class ItemModel {
@Field((type) => ID)
id: string;
@Field()
name: string;
@Field({ nullable: true })
notes?: string;
}