11 lines
222 B
TypeScript
11 lines
222 B
TypeScript
|
import { Query, Resolver } from '@nestjs/graphql';
|
||
|
import { Hello } from './hello';
|
||
|
|
||
|
@Resolver(() => Hello)
|
||
|
export class AppResolver {
|
||
|
@Query(() => Hello)
|
||
|
async hello() {
|
||
|
return { message: 'Hello, World!' };
|
||
|
}
|
||
|
}
|