-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
LiveQuery issues #539
Comments
@monster555 The query.where field is mandatory. It represents the condition of the ParseQuery the client subscribes to. The format of the where field is the same with ParseQuery's REST API format. You can check the detail here. Right now we support $lt, $lte, $gt, $gte, $ne, $in, $nin, $exists, $all, $regex, $nearSphere, $within and normal equal condition. Any unsupported conditions will be ignored. Operator '$or' is not supported |
Is your Live Query Server configured properly? |
Yes, my LiveQuery server is working properly from JavaScript client. I'm using OR QueryBuilder without problems from Flutter but there are some cases that it won't trigger any event. |
According to the documentation, Parse Server does not support the OR operator in Live Query. Check the link and comment on my previous answer. The OR operator will work on normal queries, but will not work with LiveQuery |
I think the documentation is wrong. here $or is supported. I realize that $and and $nor are missing. Can anybody try $or in the Javascript Client? |
@monster555 @dplewis |
Its been there since the beginning of Live Query. |
@monster555 Can you run VERBOSE=1 on your server? What does that output look like? |
The only thing I can see related to the subscription when running with verbose is this:
|
@RodrigoSMarques I'm on 3.2.3. I've updated to 4.2.0 but started having some error with some aggregate on my Cloud Code |
@RodrigoSMarques just updated to 4.2.0 and still the same. |
We are closing issues that have been open for a long time without activity. |
I'm having issues with LiveQuery create event as it isn't firing. Other issue I've noticed is that if my query have multiple
whereEqualTo
orwhereNotEqualTo
on debug logs only show the last criteria.If I have this query
I'm getting this on my logs:
LiveQuery: : SubscribeMessage: {op: subscribe, requestId: 3, query: {className: myClass, where: {$or: [{field1: value1, field2: {$ne: value3}}, {arrayField: {$in: [arrayValue]}, field2: value5}]}}}
If I run a "normal" query I get the expected results but LiveQuery is not firing every events all the time. I'm listening for all of the events
The text was updated successfully, but these errors were encountered: