Fix search for resources without searchable keys
In case that a resource had no item keys that were searchable (strings that are not object ids), a request would be build containing where={"$or":[]}
. This crashed the API.
There was already a check for that, but apparently an empty list does not evaluate to false
in js. We instead make sure that searchKeys
is always a list and check for its length.
Fixes #125 (closed)
Edited by Hermann