#sapurimeetup
GraphQL is a query language for your API, and a server-side runtime for
executing queries by using a type system you define for your data.
* https://graphql.org/learn/
API ため クエリ言語とそ 実行環境
79
iOS app meets GraphQL
#sapurimeetup
public final class AllPostsQuery: GraphQLQuery {
public struct Data: GraphQLSelectionSet {
public var posts: [Post] { get set }
public struct Post: GraphQLSelectionSet {
public var title: String { get set }
public var author: Author { get set }
public struct Author: GraphQLSelectionSet {
public var name: String { get set }
}
}
}
}
強力な型とコード自動生成
91
こんな感じ
Swift コードに変換
iOS app meets GraphQL