0.0.1 • Published 2 years ago
@tkvw/rxjs-apollo v0.0.1
@Tkvw\rxjs-apollo
This library allows to use apollo client in a reactive way using the rxjs library.
import { rxQuery } from "@tkvw/rxjs-apollo"
import { of, BehaviourSubject } from "rxjs";
import { ApolloClient } from "@apollo/client/core";
const [options$,results$] = rxQuery();
options$.next({
query: gql`{
message
}`
});
results$.subscribe(({loading,data}) => console.log({loading,data}))
0.0.1
2 years ago