Created
January 21, 2022 09:02
-
-
Save job25721/0ce859edccf9c80c4b772c4f9e17e306 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 { Query, Resolver } from '@nestjs/graphql'; | |
import { User } from './user.schema'; | |
@Resolver(() => User) | |
export class UserResolver { | |
@Query(() => String) | |
helloWorld() { | |
return 'hello world'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment