* Lowercase all relations in prisma/graphql schema * Add Comments data model and graphql schema * Make comments availalble on the api through resolvers and guard them * Update front graphql schema * Fix PR
31 lines
707 B
TypeScript
31 lines
707 B
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { ObjectType } from '@nestjs/graphql';
|
|
import { Int } from '@nestjs/graphql';
|
|
|
|
@ObjectType()
|
|
export class CommentThreadTargetCountAggregate {
|
|
@Field(() => Int, { nullable: false })
|
|
id!: number;
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
createdAt!: number;
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
updatedAt!: number;
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
deletedAt!: number;
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
commentThreadId!: number;
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
commentableType!: number;
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
commentableId!: number;
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
_all!: number;
|
|
}
|