javascript – Parse: “containedIn” returns nothing if I used it with pointer type – Code Utility

[

If I try to filter the data by using containedIn as below I will be getting empty result because I’m trying to filter from pointer column type userProfile despite that I include the userProfile in the query.

However, I tried to use containedIn directly to another array column in User and seems it was working fine. is this kind of the below queries will not work? and what could be the alternative solutions?

const query = new Parse.Query('User');
query.equalTo('accountType', 'Student');
query.include('userProfile');

// search.subjects is an array
query.containedIn('userProfile.subjectsIds', search.subjects);

,

Unfortunately, you can’t perform containedIn() on included objects. For containedIn() to work it has to be performed on a column of the class you are querying.

So in other words, you will have to perform this query directly on the userProfile class for containedIn() to work

]