File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33Lightweight GraphQL API client based on [ Apollo iOS] ( https://github.com/apollographql/apollo-ios ) .
44Developed to simplify [ Futured] ( https://www.futured.app ) in-house development of applications, that work with GraphQL APIs.
55
6+ ## Requirements
7+
8+ - iOS 16.0+ / macOS 13.0+
9+ - Swift 5.9+
10+ - Apollo iOS 1.17.0
11+
12+ ## Limitations
13+
614Currently there is no support for some Apollo's features:
715- Apollo built-in cache
816- GraphQL subscriptions
917- Custom interceptors
1018
19+ Network observers are available for logging and analytics.
20+
1121## Installation
1222
1323Install or add following line to your dependencies:
@@ -110,7 +120,9 @@ let mutation = MyExampleMutation()
110120import GraphQLAPIKit
111121import GraphQLGenerated
112122
113- let apiAdapter = GraphQLAPIAdapter (url : URL (string : " https://MyAPIUrl.com" )! )
123+ let apiAdapter = GraphQLAPIAdapter (
124+ url : URL (string : " https://api.example.com/graphql" )!
125+ )
114126let queryResult = await apiAdapter.fetch (query : query)
115127let mutationResult = await apiAdapter.perform (mutation : mutation)
116128```
You can’t perform that action at this time.
0 commit comments