You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using apollo client 1.2.0 version. I want execute multiple query in parallel. is it possible in this version?
example
import Apollo
let apolloClient = ApolloClient(url: URL(string: "https://api.graphql.org/"))
let query1 = """
query {
viewer {
name
}
}
"""
let query2 = """
query {
repository(owner: "apollographql", name: "apollo-client") {
name
}
}
"""
let batchQuery = BatchQuery([query1, query2])
apolloClient.send(batchQuery) { result in
switch result {
case .success(let data):
print(data.data?.viewer?.name)
print(data.data?.repository?.name)
case .failure(let error):
print(error)
}
}
The text was updated successfully, but these errors were encountered:
Question
I am using apollo client 1.2.0 version. I want execute multiple query in parallel. is it possible in this version?
example
The text was updated successfully, but these errors were encountered: