From 03595803eadd264d8737918492286796701a3cb4 Mon Sep 17 00:00:00 2001 From: emmano Date: Thu, 14 Jan 2021 03:26:16 -0600 Subject: [PATCH] Fix callback blocks (#2873) --- docs/source/essentials/mutations.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/essentials/mutations.mdx b/docs/source/essentials/mutations.mdx index 9c188ca33f..3853811ded 100644 --- a/docs/source/essentials/mutations.mdx +++ b/docs/source/essentials/mutations.mdx @@ -98,11 +98,11 @@ apolloClient .mutate(upvotePostMutation) .enqueue(object: ApolloCall.Callback() { override fun onFailure(e: ApolloException) { - Log.i(TAG, response.data.upvotePost.fragments.postDetails); + Log.e(TAG, e.getMessage(), e); } override fun onResponse(response: Response) { - Log.e(TAG, e.getMessage(), e); + Log.i(TAG, response.data.upvotePost.fragments.postDetails); } } ) @@ -252,4 +252,4 @@ If you don't have a `File`, you can also subclass `FileUpload`: }; ``` - \ No newline at end of file +