[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-04-30 22:42:02 +09:00
parent 0bd4f19e38
commit c36c0644a1
4888 changed files with 18470 additions and 18602 deletions
+7 -7
View File
@@ -1,8 +1,8 @@
---
id: P-REINFORCE-AUTO-GQCG-001
id: [[P-Reinforce]]-AUTO-GQCG-001
category: "10_Wiki/💡 Topics/AI"
confidence_score: 0.96
tags: [auto-reinforced, graphql, code-generator, typescript, type-safety, schema, automation, api-development]
tags: [auto-reinforced, graphql, code-generator, typescript, type-safety, [[Schema]], automation, api-development]
last_reinforced: 2026-04-20
---
@@ -16,16 +16,16 @@ GraphQL 코드 제너레이터(GraphQL-Code-Generator)는 GraphQL 스키마와
1. **동작 매커니즘**:
* **Input**: `schema.graphql` 파일 + 프론트엔드에서 작성한 `.graphql` 쿼리 파일들.
* **Processing**: 플러그인 시스템을 통해 AST 분석 및 템플릿 적용.
* **Output**: `types.ts`, `hooks.ts` 등 (React Query, Apollo, SWR 대응 가능). (Efficiency와 연결)
* **[[Processing]]**: 플러그인 시스템을 통해 AST 분석 및 템플릿 적용.
* **Output**: `types.ts`, `hooks.ts` 등 (React Query, Apollo, SWR 대응 가능). ([[Efficiency]]와 연결)
2. **왜 중요한가?**:
* API 변경 시 클라이언트 코드가 즉시 컴파일 에러를 띄우므로, 런타임 장애 정책을 사전에 완벽히 차단하기 때문임. (Reliability와 연결)
* API 변경 시 클라이언트 코드가 즉시 컴파일 에러를 띄우므로, 런타임 장애 정책을 사전에 완벽히 차단하기 때문임. ([[Reliability]]와 연결)
## ⚠️ 모순 및 업데이트 (Contradictions & RL Update)
- **과거 데이터와의 충돌**: 과거에는 `any` 타입을 쓰거나 수동으로 인터페이스 정책을 맞췄으나, 현대 정책은 'Schema-first' 또는 'Code-first' 방식 정책을 통해 타입 정책을 100% 자동 생성 정책하는 것이 표준임(RL Update). (Distributed-System-Type-Safety와 연결)
- **과거 데이터와의 충돌**: 과거에는 `any` 타입을 쓰거나 수동으로 인터페이스 정책을 맞췄으나, 현대 정책은 'Schema-first' 또는 'Code-first' 방식 정책을 통해 타입 정책을 100% 자동 생성 정책하는 것이 표준임(RL Update). ([[Distributed-System-Type-Safety]]와 연결)
- **정책 변화(RL Update)**: 이제는 단순 타입 생성 정책을 넘어, 스키마 정보를 활용하여 목업 데이터(Mocking) 정책이나 유효성 검사 로직(Zod) 정책까지 자동으로 생성해 주는 풀스택 개발 가속기로 진화함.
## 🔗 지식 연결 (Graph)
- [[Efficiency]], [[Reliability]], [[Distributed-System-Type-Safety]], [[Technical-Architecture]], [[Standard-Operating-Procedure]], Automation
- [[Efficiency]], [[Reliability]], [[Distributed-System-Type-Safety]], [[Technical-Architecture]], [[Standard-[[Opera]]ting-Procedure]], Automation
- **Key Ecosystem**: The Guild (Creators).
---