parseResponse
fun <D : Operation.Data> Operation<D>.parseResponse(jsonReader: JsonReader, requestUuid: Uuid? = null, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, deferredFragmentIdentifiers: Set<DeferredFragmentIdentifier>? = null): ApolloResponse<D>
Reads a GraphQL Json response like below to a ApolloResponse. GraphQL Json responses look like so:
{
"data": ...
"errors": ...
"extensions": ...
}
Content copied to clipboard
By default, this method does not close the jsonReader
See also
fun <D : Operation.Data> JsonReader.parseResponse(operation: Operation<D>, requestUuid: Uuid? = null, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, deferredFragmentIdentifiers: Set<DeferredFragmentIdentifier>? = null): ApolloResponse<D>
Reads a ApolloResponse from this. The caller is responsible for closing this.
Return
the parsed ApolloResponse