Pagination using GraphQL and SwiftUI
簡單來說就是 `List` render 到最後一個 post 的時候(藉由 `onAppear` 來偵測 )就繼續 load 剩下的 posts,這樣就能做到 infinite scroll In view: ```swift import SwiftUI str...
Perform mutation with SwiftUI and Apollo client with HTTP token authentication
首先是 Editor View 的部分, Use `@Binding` 關鍵字 ``` // // PostEditor.swift // ios-swift // // Created by Wayne on 2020/3/22. // Copyright © ...
Use Apollo (GraphQL) with SwiftUI
This [apollo-ios plugin](https://github.com/apollographql/apollo-ios) let you able to use apollo client to fetch GraphQL API easily, howe...
實做 graphql api 的各種眉角
這篇文章提到了很多實做 graphql api 的各種眉角,都是很 practical 的,值得參考 https://blog.codeship.com/graphql-and-performance-in-rails/