We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20efbb2 commit fa77e9cCopy full SHA for fa77e9c
README.md
@@ -98,12 +98,18 @@ Add `*.graphql.swift` to your repository's git ignore file to ignore Apollo gene
98
99
### Defining Query or Mutation
100
```swift
101
+import GraphQLAPI
102
+import GraphQLAPIKit
103
+
104
let query = MyExampleQuery()
105
let mutation = MyExampleMutation()
106
```
107
108
### Fetching the query/perform mutation
109
110
111
112
113
let apiAdapter = GraphQLAPIAdapter(url: URL(string: "https://MyAPIUrl.com")!)
114
let queryResult = await apiAdapter.fetch(query: query)
115
let mutationResult = await apiAdapter.perform(mutation: mutation)
0 commit comments