Commit Graph
11 Commits
Author SHA1 Message Date
arswarog 9b147ba02a graphql: enable introspection
CI / Сборка (push) Successful in 40s
Стенд master
CI / Деплой на стейджинг (push) Successful in 11s
CI / Проверка кода (push) Successful in 15s
2026-11-18 13:07:15 +03:00
arswarog b0da59fbf4 graphql: limit query depth and complexity
Depth 3 counts every field including leaves and expands fragments in place, so the Skill.profile cycle cannot be walked twice. Complexity budget 100 with weight 10 on list fields blocks alias floods at validation time.
2026-11-18 13:06:55 +03:00
arswarog c824a7675b profile: seed visit card on startup
CI / Сборка (push) Successful in 1m58s
CI / Деплой на стейджинг (push) Failing after 49s
CI / Проверка кода (push) Successful in 18s
- seed-data.json с данными визитки
- ProfileSeeder: пустая таблица Profile — признак незасеянной БД,
  вложенный create кладёт профиль и связи одной транзакцией
- JSON копируется в dist через assets, чтобы работал и в docker-образе
2026-11-18 10:00:23 +03:00
arswarog bc98a41614 profile: dto, prisma access, resolver with dataloaders
- PrismaModule/PrismaService на pg-адаптере (Prisma 7 без движка запросов)
- DTO профиля и связей; служебные id/profileId не публикуются в GraphQL
- ProfileService — единственное место запросов к БД
- DataLoader'ы на каждый запрос: 1 SQL на профиль + по 1 на затронутую связь
- GraphQLModule.forRootAsync кладёт лоадеры в контекст
- клиент Prisma генерируется в src/, иначе сборка с rootDir src не видит его
- DATABASE_URL для api-контейнера собирается в docker-compose
2026-11-18 10:00:15 +03:00
arswarog 7d8a583f11 profile: guery profile (minimal) 2026-11-16 17:30:51 +03:00
arswarog 67542ec94c profile: create module structure 2026-11-16 17:30:51 +03:00
arswarog a41cb50128 graphql: add graphql 2026-11-16 17:30:51 +03:00
arswarog 414e7b8a37 all: install prisma 2026-11-16 17:30:51 +03:00
arswarog b3bbbf2810 chore: prettier 2026-11-16 17:26:19 +03:00
arswarog cac80fe476 app: remove @nestjs/observe 2026-11-13 19:16:21 +03:00
arswarog d03d0ea51f Initial commit 2026-11-13 19:15:25 +03:00