Skip to content

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

Description

@nahuel-soldevilla

(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();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions