There was an error while loading. Please reload this page.
1 parent 7614112 commit a1d963aCopy full SHA for a1d963a
1 file changed
src/LiveQuery/ParseLiveQueryServer.ts
@@ -1413,10 +1413,10 @@ class ParseLiveQueryServer {
1413
try {
1414
const sessionToken = subscriptionInfo.sessionToken || client.sessionToken;
1415
const parseQuery = new Parse.Query(className);
1416
-
1417
- if (query && typeof query === 'object' && query !== null && Object.keys(query).length > 0) {
1418
- parseQuery._where = query;
1419
- }
+ parseQuery.withJSON({
+ className,
+ where: query || {},
+ });
1420
1421
if (subscriptionInfo.keys && Array.isArray(subscriptionInfo.keys) && subscriptionInfo.keys.length > 0) {
1422
parseQuery.select(...subscriptionInfo.keys);
0 commit comments