parseJsonResponse
fun <D : Operation.Data> Operation<D>.parseJsonResponse(jsonReader: JsonReader, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty): ApolloResponse<D>
Content copied to clipboard
Reads a GraphQL Json response like below to a ApolloResponse
{
"data": ...
"errors": ...
"extensions": ...
}
Content copied to clipboard
This method takes ownership of jsonReader and will always close it
fun <D : Operation.Data> Operation<D>.parseJsonResponse(json: String, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty): ApolloResponse<D>
Content copied to clipboard