Open ChristophB opened 2 months ago
That's right. This is an oversight in the interaction between frontend
↔ backend
.
However, I would rather intercept this case in the frontend
.
I would prefer to handle this case in the backend, because it does not feel right from a REST API perspective to return all documents.
I understand the notion, but I have the feeling, that it's kind of odd to provide an empty filter (if it's empty nothing gets filtered) and get nothing in return. You might as well not request it at all if you know it gives an empty return?
For queries with an empty result set,
getDocuments(...)
is called with an empty array asdocumentIds
parameter and returns all documents. The expected behaviour is to return an empty list of documents.