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
2323/03/05 LT
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
knot
March 05, 2023
Technology
150
0
Share
2323/03/05 LT
knot
March 05, 2023
More Decks by knot
See All by knot
フロントエンドカンファレンス北海道2024のLPをつくってみた
618knot
0
2.2k
ちとせゆるい勉強会.pdf
618knot
0
140
app_dev_meetup_vol.1_tw.pdf
618knot
0
80
Other Decks in Technology
See All in Technology
[OpsJAWS 40]リリースしたら終わり、じゃなかった。セキュリティ空白期間をAWS Security Agentで埋める
sh_fk2
3
250
20260428_Product Management Summit_tadokoroyoshiro
tadokoro_yoshiro
13
14k
No Types Needed, Just Callable Method Check
dak2
1
1.8k
国内外の生成AIセキュリティの最新動向 & AIガードレール製品「chakoshi」のご紹介 / Latest Trends in Generative AI Security (Domestic & International) & Introduction to AI Guardrail Product "chakoshi"
nttcom
4
1.4k
Claude Code を安全に使おう勉強会 / Claude Code Security Basics
masahirokawahara
12
36k
自分のハンドルは自分で握れ! ― 自分のケイパビリティを増やし、メンバーのケイパビリティ獲得を支援する ― / Take the wheel yourself
takaking22
1
960
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
150
コミュニティ・勉強会を作るのは目的じゃない
ohmori_yusuke
0
250
AI와 협업하는 조직으로의 여정
arawn
0
510
AI: Making Admin and Users, Lives Better
kbmsg
0
110
Expiration of Secure Boot Certificates for vSphere Virtual Machines
mirie_sd
0
110
Choose your own adventure in agentic design patterns
glaforge
0
150
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
110
Ruling the World: When Life Gets Gamed
codingconduct
0
210
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
740
Producing Creativity
orderedlist
PRO
348
40k
Darren the Foodie - Storyboard
khoart
PRO
3
3.3k
AI: The stuff that nobody shows you
jnunemaker
PRO
6
580
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.2k
For a Future-Friendly Web
brad_frost
183
10k
The Limits of Empathy - UXLibs8
cassininazir
1
310
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Curse of the Amulet
leimatthew05
1
11k
Mind Mapping
helmedeiros
PRO
1
160
Transcript
GraphQLつかってみた LT会 2023.03.05 knot.
のっと >> まだ情報システム工学科の2年生 12月からインターン始めた 最近はWEB方面が多め 618knot 自己紹介
ハッカソンに出ました FastAPI -> GraphQLをやった
※このLTではWeb APIのことを指します APIとは アプリケーションプログラミングインタフェース(API、 英: Application Programming Interface)[注釈 1]と は、広義ではソフトウェアコンポーネント同士が互いに情
報をやりとりするのに使用するインタフェースの仕様であ る。(wikipedia)
APIとは 一言でいうと... あるサービスの機能を外部から使えるようにしたやつ (TwitterAPI, SpotifyAPI等々)
よくみるやつ(デモ) よくみる(REST)API エンドポイントがいっぱいある GETとかPOSTとかする
GraphQLとは GraphQLとは
GraphQLとは(wikipedia) GraphQL(グラフQL)はAPI向けに作られたクエリ言語およびラ ンタイムである[2]。 ウェブAPIの開発に、RESTやその他のWebサービスと比較して、 効率的、堅牢、フレキシブルなアプローチを提供する。GraphQL では、クライアントが必要なデータの構造を定義することがで き、サーバーからは定義したのと同じ構造のデータが返される。 したがって、必要以上に大きなデータが返されるのを防ぐことが できクエリの効率が良い。また、柔軟性と豊かな表現が可能なク エリ言語は複雑さを加えるため、シンプルなAPIには適さない可能
性もある[3][4][5]。GraphQLは、型システム、クエリ言語、実 行セマンティクス、静的な検証、型イントロスペクション(英語
GraphQLとは(wikipedia)
GraphQLとは(wikipedia) GraphQLはAPI向けのクエリ言語で、RESTや他のWeb サービスに比べて効率的で堅牢であり、フレキシブルなア プローチを提供します。クライアントが必要なデータの構 造を定義でき、サーバーからは定義した構造のデータが返 されます。データの問い合わせ、書き換え、購読をサポー トします。 ?
GraphQLとは API向けのクエリ言語であX 必要なリソースだけを取得できX グラフ理論がいい感じに使われていX エンドポイントが1つだけあX
問い合わせ(Query)、書き換え(Mutation)、購読 (Subscription)がある
REST, SQLとの対応
つかってみる デモ FastAPI + Strawberryで遊んでみます
おわり 参考 https://zenn.dev/offers/articles/20220609- graphql-onboarding 大規模な開発とかで特に便利そうですね