We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9433a2b commit b72daabCopy full SHA for b72daab
1 file changed
src/LiveQuery/ParseLiveQueryServer.ts
@@ -1351,10 +1351,10 @@ class ParseLiveQueryServer {
1351
try {
1352
const sessionToken = subscriptionInfo.sessionToken || client.sessionToken;
1353
const parseQuery = new Parse.Query(className);
1354
-
1355
- if (query && typeof query === 'object' && query !== null && Object.keys(query).length > 0) {
1356
- parseQuery._where = query;
1357
- }
+ parseQuery.withJSON({
+ className,
+ where: query || {},
+ });
1358
1359
if (subscriptionInfo.keys && Array.isArray(subscriptionInfo.keys) && subscriptionInfo.keys.length > 0) {
1360
parseQuery.select(...subscriptionInfo.keys);
0 commit comments