Pulkit
09/13/2021, 6:55 PMval response = ApolloGraphQL.getClient().query(RandomQuery()).await()
Here the response will be of data type RandomQuery.Data , which is a data class.
Is it possible I can add fake data and mock the response here? I see in the generated class (RandomQuery.Data class), there is a function, which parses the data somehow
operator fun invoke(reader: ResponseReader)
wasyl
09/13/2021, 7:37 PMMockWebServer
and feeding it real jsons, that way you’ll test the most of networking implementation as well