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 7000301 commit 3d950abCopy full SHA for 3d950ab
src/LiveQueryClient.ts
@@ -430,7 +430,12 @@ class LiveQueryClient {
430
}
431
case OP_EVENTS.RESULT: {
432
if (subscription) {
433
- const objects = data.results.map(json => ParseObject.fromJSON(json, false));
+ const objects = data.results.map(json => {
434
+ if (!json.className && subscription.query) {
435
+ json.className = subscription.query.className;
436
+ }
437
+ return ParseObject.fromJSON(json, false);
438
+ });
439
subscription.emit(SUBSCRIPTION_EMMITER_TYPES.RESULT, objects);
440
441
break;
0 commit comments