-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LiveQuery does not match subobjects in query specified with dot notation #3321
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
Comments
Hi @dstarke There is something weird that you mention that Is it possible that query with dot notation? |
It is supported in Parse-server, querying with dot notations. As for the support for more complex queries, the main barrier is that the current implementation is synchronous and doesn't touch the DB for performance reasons. We'd have to make the query matching async first, and then add the support for such query constraints, this time, with DB access. |
Thanks for your reply @flovilmart. |
@ananfang for now, no schedule i'm afraid, but if you feel you want to tackle the issue, i could help you get going :) |
@flovilmart I'am afraid that I can't handle these issue currently, I am zero experience on Node.js developement. I'll try to start studyin on Node.js, if I am ready, I'll tell you later :) |
It's ok, always a good opportunity to learn. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
You've met the prerequisites: https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#prerequisites.
You're running the latest version of Parse Server: https://github.com/ParsePlatform/parse-server/releases
You've searched through existing issues: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue Chances are that your issue has been reported or resolved before.
You have filled out every section below. Issues without sufficient information are more likely to be closed.
--
Issue Description
Parse Server allows you to specify queries on nested subobjects using dot notation. For example, the query specified using
query.equalTo("status.x", "someValue");
will match objects where there is astatus
attribute whose value is an object with the keyx
and the value"someValue"
.Although this works correctly for queries issued through the REST API, the LiveQuery system does not correctly match objects based on this type of constraint. As a result, queries that use this type of key specification can return objects that the LiveQuery system will not return notifications for.
Steps to reproduce
Expected Results
Client should receive LiveQuery updates
Actual Outcome
Client does not receive LiveQuery updates
Environment Setup
Server
Database
Logs/Trace
(no relevant logs)
The text was updated successfully, but these errors were encountered: