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.
9 lines
236 B
TypeScript
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 {}
|