Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Field, Int, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class User {
@Field(() => Int)
id: number;
@Field(() => String)
name: string;
@Field(() => String)
username: string;
@Field(() => String)
email: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment