2
I am implementing the Parse SDK for Javascript and am working with the real-time listener "Subscription" of query changes.
However, according to the manual, the object
only returns the objectId
.
Analyzing the debugger of WebSocket
, can be observed that it sends the content of the created/updated/deleted object to the client.
let query = new Parse.Query('teste');
let subscription = await query.subscribe();
subscription.on('create', (object) => {
console.log('Criou ID: ' + object['id']);
});
The request for help is as follows (I couldn’t find it in Parse’s documentation), how do I read the content sent by WS? So I don’t need to run a new query to read the object.