import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; import { User } from '../user/user.model'; @ObjectType() export class Profile { @Field(() => Int, {nullable:false}) id!: number; @Field(() => User, {nullable:false}) user?: User; @Field(() => String, {nullable:false}) userId!: string; @Field(() => String, {nullable:true}) dummy!: string | null; }