Skip to content

Commit

Permalink
Fix callback blocks (#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmano authored and martinbonnin committed Jan 19, 2021
1 parent ba35271 commit d999d08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/essentials/mutations.mdx
Expand Up @@ -98,11 +98,11 @@ apolloClient
.mutate(upvotePostMutation)
.enqueue(object: ApolloCall.Callback<UpvotePost.Data>() {
override fun onFailure(e: ApolloException) {
Log.i(TAG, response.data.upvotePost.fragments.postDetails);
Log.e(TAG, e.getMessage(), e);
}

override fun onResponse(response: Response<UpvotePost.Data>) {
Log.e(TAG, e.getMessage(), e);
Log.i(TAG, response.data.upvotePost.fragments.postDetails);
}
}
)
Expand Down Expand Up @@ -252,4 +252,4 @@ If you don't have a `File`, you can also subclass `FileUpload`:
};
```

</MultiCodeBlock>
</MultiCodeBlock>

0 comments on commit d999d08

Please sign in to comment.