Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
fix: rxjs interoperability
Browse files Browse the repository at this point in the history
Closes #5
  • Loading branch information
Daniel Schmidt authored and DanielMSchmidt committed Jan 22, 2019
1 parent 305a3ae commit 93ae0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reactive-graphql.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Observable, of, from, throwError } from "rxjs";
import { Observable, of, from, throwError, isObservable } from "rxjs";
import { concatMap, map, combineLatest } from "rxjs/operators";

import {
Expand Down Expand Up @@ -359,7 +359,7 @@ function resolveField(
null // that would be the info
);

if (resolvedValue instanceof Observable) {
if (isObservable(resolvedValue)) {
return resolvedValue;
}

Expand Down

0 comments on commit 93ae0d0

Please sign in to comment.