Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
VSCode GraphQL + GraphQL Code Generator による快適なフ...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
puku0x
February 22, 2022
Technology
3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
VSCode GraphQL + GraphQL Code Generator による快適なフロントエンド開発
https://fec-fukuoka.connpass.com/event/236512/presentation/
puku0x
February 22, 2022
More Decks by puku0x
See All by puku0x
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
1.2k
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
1.6k
Agent Skills 入門
puku0x
0
2.1k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
2.2k
生成AIではじめるテスト駆動開発
puku0x
0
1.5k
実践!カスタムインストラクション&スラッシュコマンド
puku0x
2
3.4k
Nx × AI によるモノレポ活用 〜コードジェネレーター編〜
puku0x
0
1.7k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
320
ファインディでのGitHub Actions活用事例
puku0x
9
4k
Other Decks in Technology
See All in Technology
【試作】IoT x AIエージェント
happysamurai294
0
120
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
6
7k
GuardDuty 検知対応を DevOps Agent で効率化しようとしている話 / GuardDuty Investigations with DevOps Agent
masahirokawahara
1
300
生成AI時代の クレデンシャルとパーミッション設計
nrinetcom
PRO
3
1.5k
[DroidKaigi 2026] Making UI specifications visible: Android UI development in the AI agent era supported by Compose Screenshot Testing and galleries
syarihu
0
570
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
220
Bet AI Day 2026丨Agentは、「金融」という巨大産業の何を変えられるのか
layerx
PRO
0
770
AI時代に、プロダクトの数だけ積み上がる所有コストをどうエンジニアリングするか / Engineering the Cost of Ownership
kzkmaeda
0
990
2026-09-04 SRE Tech Talk #15 怠惰なTerraform / Lazy Terraform
masasuzu
0
190
本番に近いテストをもっと手軽に - Postmanで広がるAPIテストの世界 / Expanding the World of API Testing with Postman
yokawasa
1
250
Bet AI Day 2026丨AIによって本質に戻るシステムリスク管理
layerx
PRO
0
870
grill-me(grilling):AI駆動開発を超助けてくれるSkill / grill me
mathbullet
0
100
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
510
Making the Leap to Tech Lead
cromwellryan
135
10k
Why Our Code Smells
bkeepers
PRO
340
58k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
How STYLIGHT went responsive
nonsquared
100
6.3k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
690
Documentation Writing (for coders)
carmenintech
77
5.5k
Six Lessons from altMBA
skipperchong
29
4.5k
The agentic SEO stack - context over prompts
schlessera
0
890
Evolving SEO for Evolving Search Engines
ryanjones
0
280
Designing Experiences People Love
moore
143
24k
Transcript
VSCode GraphQL + GraphQL Code Generator による快適なフロントエンド開発 フロントエンドカンファレンス福岡 スピンオフ
Noriyuki Shinpuku Frontend engineer Findy Co., Ltd. @puku0x 2
@puku0x FindyはREST→GraphQL移行中 3
@puku0x 型の自動生成が欲しい 4
@puku0x GraphQL Code Generator • スキーマから型やロジックを生成 5 https://www.graphql-code-generator.com/
schema: http://localhost:3000/graphql documents: ./src/**/*.graphql generates: ./src/types.ts: plugins: - typescript -
typescript-operations codegen.yml 6
@puku0x APIドキュメントは? 7
@puku0x GraphiQL 8 https://github.com/graphql/graphiql
@puku0x 良さそう 9
@puku0x コード補完も欲しい 10
@puku0x GraphiQLも良いけど VSCodeでコード補完したい (あとシンタックスハイライトも) 11
@puku0x VSCode GraphQL • 公式のVS Code拡張 12 https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql
@puku0x 勝ったな 13
@puku0x 👀 設定 14
@puku0x 🤔 また設定...? 15
@puku0x GraphQL Config • GraphQLツールの共通設定 16 https://www.graphql-config.com/
schema: http://localhost:3000/graphql documents: ./src/**/*.graphql extensions: codegen: generates: ./src/types.ts: plugins: -
typescript - typescript-operartions codegen.yml → .graphqlrc.yml 17
@puku0x 設定ファイル統合できた 18
@puku0x HTTPSを使いたい 19
NODE_TLS_REJECT_UNAUTHORIZED=0 .env 20
@puku0x モノレポで使いたい 21
projects: my-app: schema: - https://localhost:3000/graphql documents: 'apps/my-app/src/**/*.graphql' extensions: … my-lib:
schema: - https://localhost:3000/graphql documents: 'libs/my-lib/src/**/*.graphql' extensions: … Projects 22
$ graphql-codegen --project=my-lib プロジェクト単位で実行 23
@puku0x Nx + @graphql-codegen/near-operation-file-preset 24
@puku0x Nx • モノレポ管理 + ビルド環境 25 https://nx.dev
アプリケーション側 ライブラリ側(型定義の元はこっち) 26 generates: apps/my-app/src/: preset: near-operation-file presetConfig: baseTypesPath: '~@workspace/my-lib
folder: __generated__ plugins: - typescript-operations - typescript-react-apollo generates: libs/my-lib/src/__generated__/types.generated.ts: plugins: - typescript libs/my-lib/src: preset: near-operation-file presetConfig: baseTypesPath: '~./types.generated' folder: __generated__ plugins: - typescript-operations - typescript-react-apollo
@puku0x まとめ • GraphQLはいいぞ ◦ 型の自動生成が最高だった ◦ VSCodeでコード補完 ◦ モノレポ対応
▪ Nxはいいぞ 27
@puku0x 28 https://careers.findy.co.jp/ 採用のお知らせ
@puku0x Thank you! @puku0x Noriyuki Shinpuku