import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; @ObjectType() export class ArticleMaxAggregate { @Field(() => String, {nullable:true}) id?: string; @Field(() => String, {nullable:true}) slug?: string; @Field(() => String, {nullable:true}) title?: string; @Field(() => String, {nullable:true}) description?: string; @Field(() => String, {nullable:true}) body?: string; @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; @Field(() => Int, {nullable:true}) favoritesCount?: number; @Field(() => String, {nullable:true}) authorId?: string; @Field(() => Boolean, {nullable:true}) active?: boolean; }