Skip to content

Instantly share code, notes, and snippets.

@digitalbuddha
Last active March 22, 2017 15:04
Show Gist options
  • Select an option

  • Save digitalbuddha/3c1dbccf059f0279e46e540b2c5fd89e to your computer and use it in GitHub Desktop.

Select an option

Save digitalbuddha/3c1dbccf059f0279e46e540b2c5fd89e to your computer and use it in GitHub Desktop.
RxApolloClient
ApolloWatcher<EpisodeHeroName.Data> watcher = apolloClient.newCall(query).watcher();
RxApollo
.toObservable(watcher)
.subscribe(new Observer<EpisodeHeroName.Data>() {
@Override public void onCompleted() {
}
@Override public void onError(Throwable e) {
}
@Override public void onNext(EpisodeHeroName.Data data) {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment