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
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
どんな手を使っても絶対間に合わせるスケジューラ
asari194617
0
1.6k
本番に近いテストをもっと手軽に - Postmanで広がるAPIテストの世界 / Expanding the World of API Testing with Postman
yokawasa
1
250
grill-me(grilling):AI駆動開発を超助けてくれるSkill / grill me
mathbullet
0
100
GuardDuty 検知対応を DevOps Agent で効率化しようとしている話 / GuardDuty Investigations with DevOps Agent
masahirokawahara
1
300
AI活用の現在地、 ちゃんと見えてますか?/XPfest-2026
visional_engineering_and_design
0
150
PM領域でのAI Agentの活用
lycorptech_jp
PRO
0
270
AI時代のAPI品質を支えるガードレール / API Guardrails for API quality in the AI era
yokawasa
1
110
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.6k
Amazon S3 Tablesに全部任せてみた結果——コンパクション/スナップショット管理は本当に手放せるか
shigeruoda
0
370
Azure Cost Management の FOCUS コストデータを迷わず読むための“3つの軸”
tetsuyaooooo
0
140
Bet AI Day 2026丨AIによって本質に戻るシステムリスク管理
layerx
PRO
0
870
[RSJ26] NarrativeFlow: Flow-Based Vision-Language-Action Model Using Robot Velocity Fields
keio_smilab
PRO
0
150
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
460
Scaling GitHub
holman
464
140k
Site-Speed That Sticks
csswizardry
13
1.5k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
270
The World Runs on Bad Software
bkeepers
PRO
72
12k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
410
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
370
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
560
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
410
Code Review Best Practice
trishagee
74
20k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
4
570
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