fennec-be/src/app.resolver.ts

11 lines
222 B
TypeScript
Raw Normal View History

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