Created
January 21, 2022 09:01
-
-
Save job25721/b1a849c81f8c37daafde66ba4fa444c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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