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
·
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.4k
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
1.6k
Agent Skills 入門
puku0x
0
2.2k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
2.2k
生成AIではじめるテスト駆動開発
puku0x
0
1.5k
実践!カスタムインストラクション&スラッシュコマンド
puku0x
2
3.4k
Nx × AI によるモノレポ活用 〜コードジェネレーター編〜
puku0x
0
1.7k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
330
ファインディでのGitHub Actions活用事例
puku0x
9
4k
Other Decks in Technology
See All in Technology
Omarchy Quattro の日本語設定周り
simosako
2
160
顧客に向き合う開発組織へ。リアーキテクチャとフィーチャーチーム化で挑む組織改革
safie
0
510
コスト最適化の「めんどくさい」を AWS FinOps Agent でチョット楽にする
classmethod_kaz
0
330
10Xに技術的負債をもたらした「2つの境界の歪み」その構造と解消への営み
10xinc
0
640
OpenTelemetryのメトリクスをCloudWatchに送ってPromQLで見てみた
ota1022
0
140
2026-09-11 【Snowflake World Tour Tokyo 2026】Snowflakeを起点に、AI Agentが自律稼働し続ける未来へ / Driving AI Agents with Snowflake
civitaspo
0
380
Amazon Quick on DesktopがIAM Identity Centerで動かない理由
yukiogawa
0
170
AI時代、データエンジニアが一番おもろい
genshun9
0
320
Snowflakeのコスト最適化を支えるアーキテクチャ設計
ktatsuya
1
1.5k
アプリログインとWeb認証基盤をつなぐ ASWebAuthenticationSession 作法
shimastripe
1
260
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
3
480
アリアドネの糸と、20年ごとの建て替え ── 長尾真『電子図書館』を、伊勢で読み直す / Rereading Makoto Nagao’s "Electronic Library" in Ise
ykiyota
0
160
Featured
See All Featured
Claude Code のすすめ
schroneko
67
230k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
990
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
430
Skip the Path - Find Your Career Trail
mkilby
1
230
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Fireside Chat
paigeccino
43
4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
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