Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (groups)
Viewing all articles
Browse latest Browse all 10

ACS query Chat Groups with where clause

$
0
0

Hi all, How can I query ChatGroups using where clause to filter out Chat Groups participated by users who are not friends anymore. I successully get ids of current user friends and then I put them into an array. Then I tried this:

Cloud.Chats.getChatGroups({
    where:{
        participate_users:{id:{$in:friend_idsArr}}
    }
},function (e) {
    if (e.success) {
        Ti.API.info(e);
    } else {
        alert('Error:\n' +
            ((e.error && e.message) || JSON.stringify(e)));
    }
});
How can I get it to work? To better understand the problem, you can think it like this: how can I get Chat Groups participated only by users from a list of ids?

Thank you very much!


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles



Latest Images