Skip to content
Snippets Groups Projects
agent-input.model.ts 327 B
Newer Older
Adrian Paschkowski's avatar
V2
Adrian Paschkowski committed
import { Field, InputType } from '@nestjs/graphql';
import { GraphQLInt } from 'graphql/type';

@InputType()
export class AgentInputModel {
	@Field()
	name: string;

	@Field()
	slug: string;

	@Field({ nullable: true })
	avatar?: string;

	@Field({ nullable: true })
	bio?: string;

	@Field(() => GraphQLInt)
	flags: number;
}