GraphQL: type-graphql so cute 🤗
Number of word 539
TL;DR
- type-graphql + typeorm でdefition 管理は割とちょうど良さそう
- schema管理とresponse interface 管理はいつも悩ましいがある程度統一的に宣言できる
Entity と @ObjectType を併用してかける
- https://github.com/9renpoto/frontend/pull/1115
- 型情報が近いものを記述する形になるが、宣言的に記述でき、かつどちらかだけ必要なものを書き分けられる
- createdAt, updatedAtなど共通型を継承して管理できる?
https://github.com/9renpoto/frontend/pull/1127
- =>
@Entityに見えないとColumnsと評価できないため継承することは難しかった https://github.com/9renpoto/frontend/pull/1156
- =>