Parse.com JavaScript containsAll does not work -
i have article object include array field tags. want find articles contains tags. here code:
var article = parse.object.extend('article'); var query = new parse.query(article); query.containsall('tags',tags); query.find({ success : function(results) { console.log(results);
the tags in code array like, ["tag1","tag2"]. code return empty. wrong? thanks.
have tried using containedin function? if pass array it, searches requested value.
query.containedin("tags", tags);
Comments
Post a Comment