evyos-frontend-development/backend/src/company/dto/list-company.response.ts

14 lines
333 B
TypeScript

import { Field, ObjectType } from "@nestjs/graphql";
import { Int } from "@nestjs/graphql";
import { Company } from "@/models/company.model";
@ObjectType()
export class ListCompanyResponse {
@Field(() => [Company], { nullable: true })
data?: Company[];
@Field(() => Int, { nullable: true })
totalCount?: number;
}