You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am new to NestJS, so I hope this issue is not my mistake. I think NestJS's GraphQL module does not support resolvers that returns observables. This is kind of unexpected as the REST counterpart (i.e. controllers) supports observables.
With heyPromise, I am able to get 'from promise'. However, heyObservable returns this instead:
The expected data for heyObservable should be 'from rxjs'. For now, we will need to workaround by turning the observable into a promise (i.e. heyObservable_workaround_is_ok)
Hi, I am new to NestJS, so I hope this issue is not my mistake. I think NestJS's GraphQL module does not support resolvers that returns observables. This is kind of unexpected as the REST counterpart (i.e. controllers) supports observables.
With
heyPromise
, I am able to get 'from promise'. However,heyObservable
returns this instead:The expected data for
heyObservable
should be 'from rxjs'. For now, we will need to workaround by turning the observable into a promise (i.e.heyObservable_workaround_is_ok
)Snippet of schema & resolvers used:
The text was updated successfully, but these errors were encountered: