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

queryDocument returns empty string when no results are found #238

Open
rrooij opened this issue Oct 20, 2022 · 2 comments
Open

queryDocument returns empty string when no results are found #238

rrooij opened this issue Oct 20, 2022 · 2 comments
Assignees
Labels

Comments

@rrooij
Copy link
Contributor

rrooij commented Oct 20, 2022

The function queryDocument returns an empty string when a document can't be found. This is very confusing! As you can't check for the result being null or undefined. It should either throw some kind of exception OR return NULL.

@github-actions github-actions bot added the triage issue to be triage label Oct 20, 2022
@Francesca-Bit
Copy link
Contributor

when a document can't be found
the server return an empty string
or
an empty array if you add "as_list":true in the request parameters

I think it is correct
the queryDocument (we use getDocument now queryDocument is deprecated) returns only the server answer

@Francesca-Bit Francesca-Bit self-assigned this Mar 13, 2023
@Francesca-Bit
Copy link
Contributor

we need a way to streaming the result when as_list is false

@Francesca-Bit Francesca-Bit added planned and removed triage issue to be triage labels Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants