Parse Live Query Include

I’m using parse live query for messages, in every message, I have a user pointer “userInfo”. I want the parse live query to send this populated when it sends this new message to all observers.
For example, I’m receiving this below response in a live query stream on a new message.
I want userInfo field to include the actual info of the user instead of just a pointer.


The LiveQuery server currently doesn’t support this. You can see an old, but still relevant discussion about this here:

You can use afterLiveQueryEvent

Parse.Cloud.afterLiveQueryEvent('TestObject', async req => {
      await req.object.get("key").fetch({ sessionToken: req.user.getSessionToken() });

1 Like