kamilkisiela / apollo-client-rxjs

Adds RxJS to ApolloClient
http://apollostack.com
43 stars 12 forks source link

Can't use with latest 2.x client? #57

Open kamranayub opened 6 years ago

kamranayub commented 6 years ago

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?

loganpowell commented 6 years ago

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?

kamilkisiela commented 6 years ago

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.

loganpowell commented 6 years ago

Thank you for the quick response @kamilkisiela ! Duly noted.

abumalick commented 5 years ago

it would be nice to add a note about that in the Readme.

kamilkisiela commented 5 years ago

@abumalick PR welcome