48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { ObjectType } from '@nestjs/graphql';
|
|
import * as Validator from 'class-validator';
|
|
import { HideField } from '@nestjs/graphql';
|
|
import { CommentCountAggregate } from './comment-count-aggregate.output';
|
|
import { CommentMinAggregate } from './comment-min-aggregate.output';
|
|
import { CommentMaxAggregate } from './comment-max-aggregate.output';
|
|
|
|
@ObjectType()
|
|
export class CommentGroupBy {
|
|
|
|
@Field(() => String, {nullable:false})
|
|
@Validator.IsString()
|
|
@Validator.IsOptional()
|
|
id!: string;
|
|
|
|
@Field(() => String, {nullable:false})
|
|
@Validator.IsString()
|
|
body!: string;
|
|
|
|
@Field(() => String, {nullable:false})
|
|
authorId!: string;
|
|
|
|
@Field(() => String, {nullable:false})
|
|
commentThreadId!: string;
|
|
|
|
@HideField()
|
|
workspaceId!: string;
|
|
|
|
@HideField()
|
|
deletedAt?: Date | string;
|
|
|
|
@Field(() => Date, {nullable:false})
|
|
createdAt!: Date | string;
|
|
|
|
@Field(() => Date, {nullable:false})
|
|
updatedAt!: Date | string;
|
|
|
|
@Field(() => CommentCountAggregate, {nullable:true})
|
|
_count?: CommentCountAggregate;
|
|
|
|
@Field(() => CommentMinAggregate, {nullable:true})
|
|
_min?: CommentMinAggregate;
|
|
|
|
@Field(() => CommentMaxAggregate, {nullable:true})
|
|
_max?: CommentMaxAggregate;
|
|
}
|