-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Live Query] matchesKeyConstraints
throwing error when constraints
is {$ne : null}
#8834
Comments
Thanks for opening this issue!
|
@mtrezza i think we need some changes in the code block QueryTools.js > matchesKeyConstraints here we need to check if compareTo is not null/undefined |
@mtrezza please have a look |
Will this issue be fixed by parse-community/Parse-SDK-JS#2102 once the Parse SDK is upgraded in Parse Server? @dplewis |
@mtrezza Thats a fix for the Local Datastore this issue is for LiveQuery. The query engines for both are almost the same. You can basically copy the fix over to Parse Server and it should work for Live Query. |
@RahulLanjewar93 do you want to give it a try? |
sure! |
added required change in #8835 |
🎉 This change has been released in version 7.1.0-alpha.10 |
🎉 This change has been released in version 7.1.0-beta.1 |
🎉 This change has been released in version 7.1.0 |
New Issue Checklist
Issue Description
matchesKeyConstraints function is not handling not equal to null constraint properly.
Due to which error is thrown `Cannot read properties of null (reading '__type')
Steps to reproduce
Create a subscription on a class with constraint
notEqualTo(key,null)
Actual Outcome
Throws error.
Expected Outcome
Shouldn't throw an error.
Environment
18.19.0
Server
5.5.5
Mac
self hosted
Database
Mongo
Local
Client
Javascript
4.0.1
Logs
The text was updated successfully, but these errors were encountered: