Skip to content

Instantly share code, notes, and snippets.

@job25721
Created January 21, 2022 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save job25721/b1a849c81f8c37daafde66ba4fa444c1 to your computer and use it in GitHub Desktop.
Save job25721/b1a849c81f8c37daafde66ba4fa444c1 to your computer and use it in GitHub Desktop.
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