Cant access include('profile') pointer data on client side

Im wondering if there is some insight into this, I have the query below, when i view the network tab for the request data i can clearly see it has come over the wire, however trying to access it i get nothing, I have been doing some hacky stuff but im wondering is there some nicer solution to this that i havent found yet and why or what is stopping me from accessing it using dot notation on the client side when i can clearly see it in the network response

      const mostRecentUser = await new Parse.Query(Parse.User)
        .descending("createdAt")
        .include('profile')
        .first({ useMasterKey: true });

Really just curious what is the mechanism that stops me accessing this json on the client side when the json is literally there in the request data, surely there must be a way to bypass pase .get() etc

Can you try

fetch(options)

@reptilehaus

Should fetch be done client or server side ? and isnt fetch a promise, so if it is a .find() query we need to wait for all the promises to resolve for each data entry

If you need masterKey or other ACLs you can use in server side.
Yes its promise you can wait.
This is for if you have a pointer in your set, you can fetch pointer data that way.

Yeah but waiting for 1000 promises to resolve on lets say 1000 records in a find is not very good, is there some way to hook into the raw mongodb driver so that we can write a complex query that we can match the pointer on one collection to the id of the other that way not requiring a lot of promises

Yes, you can use the

aggregate(…)

function.