Nested queries from the frontend

In my database I am storing objects with pointers to other pointers

I’m fetching the parent objects using a pipeline:

let pipeline = [
    project: {
      chain: 1,
      nft: 1,
      objectId: 0,

I was expecting that I could fetch attributes of the nested Object like this:


But it seems like only the id is accessible, so I have to fetch attributes of the nested object like this:

const query = new Moralis.Query("NFT");
const nft = await query.get(;

Logging both objects also confirms that they seem to be different:


Is it possible to somehow retrieve attributes of nested Objects without having to query again?

I don’t know about pipelines, but with normal queries you can use and query.include to also fetch the object from a pointer