I need to connect 2 queries in Parse.com with an and, my code is:
var queryDeseo1 = new Parse.Query(DeseosModel);
queryDeseo1.equalTo("User", Parse.User.current());
queryDeseo1.equalTo("Deseo", artist);
queryDeseo1.find({...
The result of the .find
is all the objects with User = Parse.User.current())
and all the objects with Deseo = artist
but I want the objects with the two queries together:
User = Parse.User.current())
and Deseo = artist