Sammy/t 363 comments count at row level depends on total comments number (#192)
* feature: add rightEndContent to editable cell * refactor: use rightEndContent instead of comments sections * refactor: move commentCount in a var * feature: get commentsCount from backend * refactor: use an index * feature: use commentCount from backend on people * refactor: rename commentCount for companies * refactor: use generated queries, instead of useQuery
This commit is contained in:
@ -63,7 +63,7 @@ export class CompanyRelationsResolver {
|
||||
@TypeGraphQL.ResolveField(() => TypeGraphQL.Int, {
|
||||
nullable: false,
|
||||
})
|
||||
async _commentsCount(@TypeGraphQL.Root() company: Company): Promise<number> {
|
||||
async _commentCount(@TypeGraphQL.Root() company: Company): Promise<number> {
|
||||
return this.prismaService.comment.count({
|
||||
where: {
|
||||
commentThread: {
|
||||
|
||||
Reference in New Issue
Block a user