import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; import { Query, Resolver } from '@nestjs/graphql'; @Controller() @Resolver() export class AppController { constructor(private readonly appService: AppService) {} @Query(()=>String) @Get("/") hello(): string { return this.appService.getHello(); } }