parse-server
parse-server copied to clipboard
LiveQuery pointer comparison does not handle null
New Feature / Enhancement Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
Current Limitation
Current QueryTools.js implementation protects itself from undefined objects but not from null objects. By using Parse Dashboard, it happens to create nulls instead of undefineds.
Feature / Enhancement Description
Checking for undefined and null.
((typeof obj !== 'undefined') && obj !== null)
Example Use Case
Register a livequery with a comparison on a pointer, then put that pointer to null (by code or by dashboard)
Alternatives / Workarounds
Use unset?
3rd Party References
Thanks for opening this issue!
- 🎉 We are excited about your ideas for improvement!
Is this actually a bug?
It is unclear to me if putting Pointers to null instead of undefining them is an acceptable practice in parse server. If it is, then probably not protecting against it is a bug.
Yes, I've also faced the same issue. setting pointer to a null value results in exception. If this null is not a valid value for pointers, it'd be helpful if we document it.
Any news on this?
What is the exception being thrown?