import { ObjectType , Field } from '@nestjs/graphql' ; import { CoreResponse } from '@/common/dto/coreResponse.dto' ; import { Post } from '../posts.model' ; @ ObjectType ( ) export class PostsResponse extends CoreResponse { @ Field ( ( type ) => [ Post ] , { nullable : true } ) posts ? : Post [ ] ; }