Files
epess-web-backend/src/app.module.ts
Ly Tuan Kiet 4747fca4a4 Add Pothos-generated User GraphQL schema and resolver
This commit adds the Pothos-generated User GraphQL schema and resolver. The schema is defined in the `src/graphql/graphql.schema.ts` file, and the resolver is defined in the `src/graphql/graphql.resolver.ts` file. The schema includes the `User` object type with fields for `id`, `name`, and `email`. The resolver includes a query field `users` that resolves to fetch all users from the Prisma database.
2024-09-24 16:52:09 +07:00

9 lines
236 B
TypeScript

import { Module } from '@nestjs/common';
import { GraphqlModule } from './graphql/graphql.module';
import { PrismaModule } from './prisma/prisma.module';
@Module({
imports: [PrismaModule, GraphqlModule],
})
export class AppModule {}