Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform response node into a Promise? or rxjs Observable? #18

Open
nahuel-soldevilla opened this issue Apr 7, 2021 · 0 comments
Open

Comments

@nahuel-soldevilla
Copy link
Member

(Logging some features discussed during the hackaton, which are not currently available at least to my knowledge)

Provide an api like Observable.toPromise()

Possible use case: use async await syntax. E.g (angular httpclient)

      const res = await this.http.post(this.context.destination + '/germplasm', request, {
        headers: {
          Authorization: 'Bearer ' + this.context.destinationToken
        }
      }).toPromise();
@nahuel-soldevilla nahuel-soldevilla changed the title Transform response node into a Promise? Transform response node into a Promise? (Edit: or rxjs Observable?) Aug 31, 2021
@nahuel-soldevilla nahuel-soldevilla changed the title Transform response node into a Promise? (Edit: or rxjs Observable?) Transform response node into a Promise? or rxjs Observable? Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant