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 +