-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
Originally reported by @vahidalizad:
There is bug in /src/LiveQuery/QueryTools.js:216 in the master branch with throws an error can't find __type of null because compareTo is null.
Only the null subscribed client does not get any events at all anymore for that class but the rest of the clients have no issues.
in my tests I realized q.notEqualTo('***', null); also have this problem, and clients with these conditions can't get events and the real issue apart from that is they don't get notified that the problem is compareTo parameter.
I think the q.notEqualTo('***', null); should work nicely and result in objects that are not null on that parameter but the error of Cannot read property '__type' of null is throwing on this condition as well.
Steps to reproduce
// client side
let q = new Parse.Query('User')
q.lessThan('createdAt', null)
q.subscribe()
Actual Outcome
Expected Outcome
Environment
Server
- Parse Server version:
4.10.3
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
JS - SDK version:
unknown
Logs
n/a