Parse.Query.or(query1, query2, query3); How to pass list?

#1

I’m trying to pass a list to a compound query but it’s not working ( stating that a query need to be constructed with the class name )

var compoundQuery = Parse.Query.or(taskSkillsQueryList);

However if I add an element of that list which is a ParseQuery it works :

var compoundQuery = Parse.Query.or(taskSkillsQueryList[0]);

The size of the list is variable so is there a way to achieve it and pass the whole list?

#2

Try:

var compoundQuery = Parse.Query.or(...taskSkillsQueryList);
1 Like
#3

It worked! Awesome :ok_hand: thank you so much Davi !