Conversation
Work in process to migrate to the future apollo-client v4 and its native RxJS support via apollographql/apollo-client#12384
|
💻 Website PreviewThe latest changes are available as preview in: https://pr-2355.apollo-angular.pages.dev |
|
@PowerKiKi FYI we released a codemod with Apollo Client 4.0 that I think might be useful to you here. It not only updates the import locations, but will update to the new types as well (i.e. |
packages/apollo-angular/src/utils.ts
Outdated
| return new Observable(subscriber => { | ||
| return obsQuery.subscribe(subscriber); | ||
| }); |
There was a problem hiding this comment.
FYI ObservableQuery implements the InteropObservable interface, so you should be able to simplify this to:
import { from } from "rxjs";
// ...
return from(obsQuery);
Work in process to migrate to the future apollo-client v4 and its native RxJS support via apollographql/apollo-client#12384