-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LiveQuery ClassNames #4544
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
At the moment it’s not possible due to the current architecture of the server and the live query server. However, what we could easily introduce is a pattern matching option to the list of liveQueryClasses, this way, you could perhaps use a common prefix in your class name and they would automatically match when they’re added by your clients. |
Adding pattern matching would be great. It will solve our problems. I have very little experience in Parse server development. I will explore the sources. If you have any suggestions, it would be very helpful. |
Have a look here: https://github.com/parse-community/parse-server/blob/master/src/Controllers/LiveQueryController.js#L35 Instead of checking if the array contains the object, we could check for patterns. |
We did not expect a solution that is clean and straightforward at one go. We will make changes. Thanks again. |
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. |
We have a project where the client creates arbitrary classes at runtime. We are restarting the services periodically(if need) to reconfigure the live query server.
Is there a way where we can reconfigure the live query server at run time by adding and deleting classes?
The text was updated successfully, but these errors were encountered: