Commit Graph

15 Commits

Author SHA1 Message Date
fcc2b96a3b auto format 2024-10-15 15:50:20 +07:00
80743b0973 update fields 2024-10-15 02:39:06 +07:00
0ac5868d2d ba me oi con thanh cong roi 2024-10-14 23:05:35 +07:00
76ff5d28ac implement subcategory 2024-10-14 16:53:55 +07:00
12386d0255 bump by database 2024-10-13 19:51:23 +07:00
641c0622a5 update webhook 2024-10-13 16:22:07 +07:00
85026556b2 met qua 2024-10-11 17:11:47 +07:00
30159e01ad tao da het bi ngu 2024-10-07 17:29:44 +07:00
dfa6b35399 refactor codebase and pothos structure 2024-10-07 10:07:08 +07:00
aa5817fb06 Add type-graphql dependency and extend GraphQL schema with new types and fields 2024-10-06 11:04:31 +07:00
6cc26c0f75 Refactor code structure and dependencies 2024-09-27 06:51:14 +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
e84f89f09e Add prisma:generate script to package.json 2024-09-09 16:36:34 +07:00