-
Notifications
You must be signed in to change notification settings - Fork 56
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
Check for undefined/null field is not working #90
Comments
Thanks for the heads up. Other than fixing it so we are not running into an exception, in terms of
I realize that some of my questions are silly because of how ES indexing/storage works but still please humor me. Also I wonder if loopback has smartly defined an explicit behavior for their ORM for such queries so we don't make this up as we do along! cc @bajtos - What do you think? |
My knowledge of juggler and connectors is limited, @strongloop-community/sq-lb-apex are better suited to help you. |
Is there any movement on this? It seems to me like pretty necessary functionality to be able to query a database for nulls. As to your three questions, I don't much experience with ES, so I can't say all the implications here, but I would say "yes" to 1. As far as 2, I'm not positive what For question 3, this would not make sense to me since the query would return documents that don't have the field but not return documents where that field is |
Also, FWIW, a similar query (filter of |
When I try to query:
{filter: {where: {empty_field_name: null}}} there is an exception:
Trace: [parsing_exception] No text specified for text query, with { line=1 & col=64 }
at .../node_modules/loopback-connector-es/lib/esConnector.js:835:12
Line number could be different, since I'm on my on branch.
The text was updated successfully, but these errors were encountered: