Skip to content

Instantly share code, notes, and snippets.

@job25721
Created January 21, 2022 09:02
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/0ce859edccf9c80c4b772c4f9e17e306 to your computer and use it in GitHub Desktop.
Save job25721/0ce859edccf9c80c4b772c4f9e17e306 to your computer and use it in GitHub Desktop.
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