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

why queryApi.queryRows not acts as Promise? #198

Closed
mogadanez opened this issue Jun 8, 2020 · 3 comments
Closed

why queryApi.queryRows not acts as Promise? #198

mogadanez opened this issue Jun 8, 2020 · 3 comments
Milestone

Comments

@mogadanez
Copy link

hard to use in standard flows - require to make own wrappers etc

@sranka
Copy link
Contributor

sranka commented Jun 8, 2020

Thank you for reporting an issue. There can be a lot of results returned by the query, so we do not cache all results in memory, which you would have to do with a Promise. You can use a standard flow of Observables to stream the results, collect them, and convert to a promise, there is rxjs-query.ts example

@cailloumajor
Copy link

@mogadanez is your problem similar to #199 ?

@sranka
Copy link
Contributor

sranka commented Jun 9, 2020

#200 add new utility functions with warnings into QueryApi

@sranka sranka closed this as completed Jun 9, 2020
@bednar bednar added this to the 1.4.0 milestone Jun 10, 2020
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

4 participants