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
スポーツ×GraphQL
Search
ufoo68
April 11, 2020
Programming
410
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
スポーツ×GraphQL
ufoo68
April 11, 2020
More Decks by ufoo68
See All by ufoo68
BlenderをCodexで動かす
ufoo68
1
710
改めて考えるOSSのあり方について
ufoo68
0
87
文法で学ばないJavaScript
ufoo68
0
100
Cookieとは?
ufoo68
1
100
今更ながら、開発現場での生成AI活用について
ufoo68
0
100
28歳独身エンジニア 婚活してみた
ufoo68
0
55
OpenAIでクッキー型を作る
ufoo68
1
84
初めて開発リーダーをやってみた話
ufoo68
0
160
M5Stack用の指紋認証デバイスを試す
ufoo68
0
960
Other Decks in Programming
See All in Programming
Intent as Code
shoppingjaws
6
1.1k
WebMCP Challenge に星空観察アプリで参加した話
okajun35
0
190
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
180
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
180
一人だけ、Kiroが静止する日
hideg
0
130
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
500
アクセシビリティから考える情報設計
high_g_engineer
0
390
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
180
AHC070解法紹介
eijirou
0
130
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
770
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
160
wkhtmltopdfの次どうするか問題2026
willnet
2
1.6k
Featured
See All Featured
Believing is Seeing
oripsolob
1
220
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Being A Developer After 40
akosma
91
590k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
ラッコキーワード サービス紹介資料
rakko
1
5M
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Fireside Chat
paigeccino
43
4k
Paper Plane (Part 1)
katiecoart
PRO
2
11k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
280
Transcript
スポーツ×GraphQL とりあえずネタがなかった
自己紹介 • 名前 ◦ ufoo68 • やってること ◦ AWSを使った開発 ◦
スポーツIoTLTの主催 • 最近とった資格 ◦ ソリューションアーキテクトアソシエイト ◦ Alexaスキルビルダー
宣伝
ときは二日前
最初に 毎度のことながら ネタがなかった
最初に考えたこと MiBand4を買ったのでハックしてみよう
しかし 前回のスポーツIoTLTとIoTLT60回目にて 流石に同じネタをやるのは面白くない。。。
次に考えたこと 最近勉強してるGraphQLでスポーツネタできないかな
探したらなんかあった
順を追って説明
TheSportsDB スポーツ選手・チーム・イベントに関するデータを取得できるAPI
やろうと思ったこと 公式のGraphQL wrapperを使ってSportsDBのデータを取得してみる
ここからGraphQLについての話
まずGraphQLとは? • サーバとクライアント間の通信のための使用言語 • FaceBookの研究チームが提唱 • REST APIに変わる新たな技術(?)
誤解してたこと 既存のAPIサーバとクライアント間の通信の仕様が変わるのか? クライアント API サーバ クエリを投げる クエリを解釈 レスポンスを返す
本当は違った GraphQLというものが両者を仲介するようになる クライアント API サーバ クエリを投げる クエリを解釈してリクエストを投げる GraphQLサーバ リクエストを受け取る
実際にやってみた
ローカルでGraphQLサーバを実行
Postmanでクエリを実行
スキーマのタイプを調べるクエリ query { __schema { types { name description }
} } 試しにこのPlayerってやつを とってみよう
Playerでとれる情報を調べる query { __type(name:"Player") { name fields { name }
} }
適当な選手の情報を取得 query { player(id:34145937) { name sportType nationality } }
以上
まとめ • MiBand4の話は前回のスポーツIoTLTと本家IoTLT vol.60のn0bisukeさんの資 料を見よう • スポーツIoTLTのIoTはInternet or Thingsなのでこんな話もしていい •
GraphQLはREST APIとはまた立ち位置が違う • スポーツ関係ない話でごめんなさい