Commit Graph

6 Commits

Author SHA1 Message Date
121396aa8f Add SortOrder enum and enhance Service query with sorting and filtering options 2024-10-06 12:09:58 +07:00
88176bddc1 Refactor code structure and dependencies 2024-09-29 21:46:03 +07:00
258a35d364 Refactor code structure and dependencies
- Remove unused files and modules
- Update submodule URL for epess-database
- Update DATABASE_URL in compose.yaml
- Update CI workflow to fetch submodules during checkout and fix GITHUB_TOKEN issue
- Enable strict mode in tsconfig.json
- Add UsersService and UsersResolver in users module
- Remove AppService and AppController
- Update main.ts to remove unused imports and log statement
- Add PrismaModule and PrismaService
- Add PrismaContextMiddleware
- Update GraphQL module to use schema and PrismaService
- Update package.json dependencies and devDependencies
2024-09-27 06:21:04 +07:00
0003931eeb Update submodule URL for epess-database 2024-09-25 07:39:36 +07:00
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
30e7ec74b6 Add GraphqlService to handle GraphQL requests 2024-09-09 16:14:21 +07:00