11 questions
0
votes
1
answer
111
views
Fragments with Apollo kotlin Graphql not getting Fragment type in response using Moshi Converter
When using a Fragment in my query for Graphql call, I am facing below issue with Fragment during Moshi conversion.
I have query like this
fetchData($userId: String!)
{
...UserDataFields
}
fragment ...
0
votes
1
answer
385
views
Apollo GraphQL Kotlin Codegen Fragment Serializable
I am using Apollo GraphQL Kotlin client and codegen. But the fragment classes generated by it cannot be saved in instance state as they are not serializable. What is the smartest way to make this ...
0
votes
1
answer
142
views
Is it possible to change the default schema directory in Apollo Kotlin?
I am trying to use Apollo Kotlin as GraphQL client for GraphQL queries.
Apollo Kotlin requires a schema in your module’s src/main/graphql directory.
All our Schemas are present in a separate git repo (...
2
votes
3
answers
492
views
How to catch exceptions from ApolloClient watch method?
This code - manual query execution without watch - throws an exception as I expect it (due to an intentionally wrong server url not shown here):
try {
val response = apolloClient.query(MyQuery())....
1
vote
1
answer
1k
views
Apollo-Kotlin: After creating schema.graphql android studio is showing Unsupported token `!` error
Steps that I made so far.
Downloaded an install the graphql plugin to execute the queries internally.
Created this config file for executing local queries for the expected behavior.
Which is ...
1
vote
1
answer
622
views
How to get the error body from an ApolloHttpException?
With Apollo Kotlin 3 the ApolloHttpException there is no rawResponse() method anymore and the body property is always null.
Is there a way to get the error body?