Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
VSCode GraphQL + GraphQL Code Generator による快適なフ...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
puku0x
February 22, 2022
Technology
3.1k
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.8k
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
1.6k
Agent Skills 入門
puku0x
0
2.3k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
2.3k
生成AIではじめるテスト駆動開発
puku0x
0
1.6k
実践!カスタムインストラクション&スラッシュコマンド
puku0x
2
3.5k
Nx × AI によるモノレポ活用 〜コードジェネレーター編〜
puku0x
0
1.8k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
330
ファインディでのGitHub Actions活用事例
puku0x
9
4k
Other Decks in Technology
See All in Technology
More Freedom on the Same Shared GPU Cluster: A Small Team’s Experience with vCluster
nttcom
0
150
Snapshot Testing in Practice: Predictable and Reliable SwiftUI Views
fespinoza
0
180
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
260
Jetson Orin Nanoとk3sとローカルLLMで音声文字起こしシステム作ってみた
y_sera15
0
120
予測不能な実行エージェントを安全にサクッと試せるサンドボックス環境の話
sansantech
PRO
1
140
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
7
2.8k
今さら理解するウェブフォントver.2026
takanorip
3
660
AI駆動開発、viviONの1年 ── うまくいったこと・いかなかったこと
vivion
0
290
プロダクト価値を、 チームが使える判断軸に変える
vivion
0
150
オンラインゲームのシステム全体像 - コロプラ 2026年度 新卒研修
colopl
0
1.1k
Deep Data Security 機能解説
oracle4engineer
PRO
2
770
自主式軟體工廠
philipz
0
250
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
55
13k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
540
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
360
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
270
Abbi's Birthday
coloredviolet
4
10k
Mind Mapping
helmedeiros
1
400
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
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