import * as TypeGraphQL from "type-graphql" ; import * as GraphQLScalars from "graphql-scalars" ; import { Prisma } from "../../../client" ; import { DecimalJSScalar } from "../../scalars" ; import { PostAvgAggregate } from "../outputs/PostAvgAggregate" ; import { PostCountAggregate } from "../outputs/PostCountAggregate" ; import { PostMaxAggregate } from "../outputs/PostMaxAggregate" ; import { PostMinAggregate } from "../outputs/PostMinAggregate" ; import { PostSumAggregate } from "../outputs/PostSumAggregate" ; import { PostKind } from "../../enums/PostKind" ; @ TypeGraphQL . ObjectType ( "PostGroupBy" , { isAbstract : true } ) export class PostGroupBy { @ TypeGraphQL . Field ( _type => String , { nullable : false } ) uuid ! : string ; @ TypeGraphQL . Field ( _type => Date , { nullable : false } ) createdAt ! : Date ; @ TypeGraphQL . Field ( _type => Date , { nullable : false } ) updatedAt ! : Date ; @ TypeGraphQL . Field ( _type => Boolean , { nullable : false } ) published ! : boolean ; @ TypeGraphQL . Field ( _type => String , { nullable : false } ) title ! : string ; @ TypeGraphQL . Field ( _type => String , { nullable : false } ) subtitle ! : string ; @ TypeGraphQL . Field ( _type => String , { nullable : true } ) content ! : string | null ; @ TypeGraphQL . Field ( _type => TypeGraphQL . Int , { nullable : false } ) authorId ! : number ; @ TypeGraphQL . Field ( _type => TypeGraphQL . Int , { nullable : true } ) editorId ! : number | null ; @ TypeGraphQL . Field ( _type => PostKind , { nullable : true } ) kind ! : "BLOG" | "ADVERT" | null ; @ TypeGraphQL . Field ( _type => GraphQLScalars . JSONResolver , { nullable : false } ) metadata ! : Prisma . JsonValue ; @ TypeGraphQL . Field ( _type => PostCountAggregate , { nullable : true } ) _count ! : PostCountAggregate | null ; @ TypeGraphQL . Field ( _type => PostAvgAggregate , { nullable : true } ) _avg ! : PostAvgAggregate | null ; @ TypeGraphQL . Field ( _type => PostSumAggregate , { nullable : true } ) _sum ! : PostSumAggregate | null ; @ TypeGraphQL . Field ( _type => PostMinAggregate , { nullable : true } ) _min ! : PostMinAggregate | null ; @ TypeGraphQL . Field ( _type => PostMaxAggregate , { nullable : true } ) _max ! : PostMaxAggregate | null ; }