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 Intro iOS
Search
Sergey Nikolaev
August 07, 2019
Programming
42
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
GraphQL Intro iOS
Sergey Nikolaev
August 07, 2019
Other Decks in Programming
See All in Programming
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
APNsからLive Activityを開始する話
yumnumm
0
170
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
ChromeでローカルLLM
ryu1013
0
140
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
490
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
160
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.4k
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
contenteditable と日本語入力に向き合う
colorful12
0
200
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
630
Designing for Performance
lara
612
70k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
820
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Navigating Weather and Climate Data
rabernat
0
560
Are puppies a ranking factor?
jonoalderson
2
4.1k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
The Curse of the Amulet
leimatthew05
3
16k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Chasing Engaging Ingredients in Design
codingconduct
0
360
Transcript
GraphQL Intro
https://domain/posts/{id}
None
Schema
Schema "kind": "OBJECT", "name": "Product", "description": "", "fields": [ {
"name": "id", "description": "", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "isDeprecated": false, "deprecationReason": null }
Schema "name": "suggestedProducts", "description": "", "args": [], "type": { "kind":
"NON_NULL", "name": null, "ofType": { "kind": "LIST", "name": null, "ofType": { "kind": "INTERFACE", "name": "ProductInterface", "ofType": null } } }, "isDeprecated": false, "deprecationReason": null
Schema "kind": "OBJECT", "name": "Query", "description": "", "fields": [ {
"name": "product", "description": "", "args": [ { "name": "id", "description": "", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", "name": "ID", "ofType": null } }, "defaultValue": null } ], } ]
Request query GetDetailFragmentProduct($id: ID!) { product(id: $id) { ... ProductFragment
suggestedProducts { ... ProductFragment ... on RelatedProduct { commonTags } ... on PromotionalProduct { discount } } } user { discount age } } fragment ProductDetails on ProductInterface { id name description price(currency: "USD") }
API.swift public final class GetFragmentProductQuery: GraphQLQuery { public let operationDefinition
= "query GetFragmentProduct($id: ID!) {\n product(id: $id) {\n __typename\n ...ProductFragment\n suggestedProducts {\n __typename\n ...ProductFragment\n }\n }\n}" public var queryDocument: String { return operationDefinition.appending(ProductFragment.fragmentDefinition) } public var id: GraphQLID public init(id: GraphQLID) { self.id = id } public var variables: GraphQLMap? { return ["id": id] } public struct Data: GraphQLSelectionSet { public static let possibleTypes = ["Query"] public static let selections: [GraphQLSelection] = [ GraphQLField("product", arguments: ["id": GraphQLVariable("id")], type: .object(Product.selections)), ] public private(set) var resultMap: ResultMap public init(unsafeResultMap: ResultMap) { self.resultMap = unsafeResultMap } public init(product: Product? = nil) { self.init(unsafeResultMap: ["__typename": "Query", "product": product.flatMap { (value: Product) -> ResultMap in value.resultMap }]) } public var product: Product? { get { return (resultMap["product"] as? ResultMap).flatMap { Product(unsafeResultMap: $0) } } set { resultMap.updateValue(newValue?.resultMap, forKey: "product") } }
Request body hashing
Batching
Cache
Cache
Cache
Cache
Cache
None
https://epa.ms/graphql-ios-intro Sources and demo projects