Relation to Many query

I have been going in circles with query relations and I canā€™t seem to get it to work.

 const theUser = Moralis.User.current();
    const query = new Moralis.Query(theUser);
    query.include("likes");

    const comments = await query.find();
    console.log(comments[0]);
    const testMode = comments[0].get('likes');
    console.log(testMode);
}

I tried this too

    const user = Moralis.User.current();
    const relation = user.relation("likes");
    relation.query().find({
        success: function(list) {
 
        }
      });

This issue remains unsolved. Tried different paths but nothing worked.

How can I simply query current post likes from the current user?

try to use console.log(JSON.stringify(query_result)) to see how it looks the result

It logs all the user info but Iā€™m specifically interested to get this relation:

ā€œinterestsā€:{"__type":ā€œRelationā€,ā€œclassNameā€:ā€œInterestā€}

const query = new Moralis.Query(theUser);
query.include(ā€œinterestsā€);

const comments = await query.find();
console.log(comments[1]);
const testMode = comments[1].get('interests');
console.log(testMode);


console.log(JSON.stringify(testMode))

This logs:

{"__type":ā€œRelationā€,ā€œclassNameā€:ā€œInterestā€}

did you try with another query: testObject.get('userRel').query().find() (From that link)

Yep, but it is not workingā€¦ Been going in a loop in this for daysā€¦