apollo-client-rxjs
apollo-client-rxjs copied to clipboard
Can't use with latest 2.x client?
I think I'm trying to do something simple but not getting very far:
client.watchQuery({ query, variables })
.map(response => doSomething(response.data))
.subscribe(newData => {
console.log(newData);
})
But I'm getting "map is undefined or not a function".
I'm guessing it's because this is written against 1.x beta and not 2.x?
Just checking in on this as apollo-link
now returns an "observable," but seems to have some different operators than those in RxJS. Any news?
I won't update apollo-client-rxjs
to support version 2.0 of apollo-client
.
@loganpowell apollo-link
uses zen-observable
, not rxjs
but this library won't get benefits from it because it's built on top of apollo-client
.
Thank you for the quick response @kamilkisiela ! Duly noted.
it would be nice to add a note about that in the Readme.
@abumalick PR welcome