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
Introducing GraphQL-Ruby
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yotuba088
October 21, 2020
Programming
3
1.7k
Introducing GraphQL-Ruby
iCARE Dev Meetup #14 でのLT資料です。
https://icare.connpass.com/event/189356/
yotuba088
October 21, 2020
Tweet
Share
More Decks by yotuba088
See All by yotuba088
How to improve event attraction for engineers
yotuba088
0
150
Trying to upgrade Rails
yotuba088
2
1.2k
Other Decks in Programming
See All in Programming
CSC307 Lecture 04
javiergs
PRO
0
650
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
190
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
Grafana:建立系統全知視角的捷徑
blueswen
0
310
Implementation Patterns
denyspoltorak
0
260
ゆくKotlin くるRust
exoego
1
210
組織で育むオブザーバビリティ
ryota_hnk
0
150
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
5
4.2k
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
140
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
410
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
540
Architectural Extensions
denyspoltorak
0
240
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
58
42k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
340
A Tale of Four Properties
chriscoyier
162
24k
Technical Leadership for Architectural Decision Making
baasie
1
220
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
230
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
110
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
57
30 Presentation Tips
portentint
PRO
1
190
Faster Mobile Websites
deanohume
310
31k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
190
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
420
The SEO identity crisis: Don't let AI make you average
varn
0
56
Transcript
GraphQL-Rubyの実戦投入と知見 https://twitter.com/yotuba_eng
クエリを書けば欲しい形のJSONを返してくれるAPI GraphQLとは?
フロントエンドからのデータ取得 外部公開用APIとしても使用 弊社ではどのように使っている?
エンドポイントが一つになる バージョンレス 問い合わせるクエリをユーザー側が作れる RESTとの違いは?何が便利?
✖ 全てのユーザーが同じ操作はできない ✖ 社内用と外部公開用で取得できる情報を変えたい サービスとしてやらなければいけないこと
問い合わせるクエリをユーザー側が作れる ↓ 無限に深いデータを問い合わせられたら? 見られたくないFieldに問い合わせられたら? GraphQLの弱点?
Query/Mutation/Subscription Queryで取得できるFieldを制限する方法 Mutationを実行できる条件を制限する方法 GraphQL-Rubyの公式に全て載っている 今日伝えたいこと:実行制御・取得制御 取得 変更 変化検知
Mutationの実行権限制御→ready? Mutationの実行制限の方法
公開用APIで表示するFieldを制限する方法
Type自体へのアクセスを制限する方法
GraphQL::Analysis::ASTを使用する connection_typeのmax_page_sizeを使用 クエリの深さとサイズを制限する方法
GraphQLってとっても便利! 公開APIとしても非常に優秀! クエリ楽しい!皆使おう! 最後に
https://techbookfest.org/product/5023805390979072 もっと知りたい方へ:無料でダウンロードできる本が!