Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Query, Resolver } from '@nestjs/graphql';
import { User } from './user.schema';
import { UserSerivce } from './user.service';
@Resolver(() => User)
export class UserResolver {
constructor(private readonly userService: UserSerivce) {}
@Query(() => String)
helloWorld() {
return this.userService.helloWorld();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment