import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; import { Article } from '../article/article.model'; import { TagCount } from './tag-count.output'; @ObjectType() export class Tag { @Field(() => Int, {nullable:false}) id!: string; @Field(() => String, {nullable:false}) name!: string; @Field(() => [Article], {nullable:true}) articles?: Array
; @Field(() => TagCount, {nullable:false}) _count?: TagCount; }