ACS: Query Places Based on Array of Place IDs

You must Login before you can answer or comment on any questions.

I am trying to query ACS Places based on an array of place IDs. My code looks like this:

Cloud.Places.query({
    per_page: 30,
    where: {
        place_id: {
            '$in': ["506dc85a025afe7c2207100b","507f29659fdb0155d00003c9"]
        }
    }
}, function (e) {
    if (e.success) {
        callback(e);
    } else {
        alert('Error: ' + ((e.error && e.message) || JSON.stringify(e)));
    }
});
This search returns 0 results (and I have Places with these IDs). I also tried using "id" instead of "place_id" for the "where" parameter. Do you have an idea what I'm doing wrong? Should I be using "search" instead of "query"?

1 Answer

Accepted Answer

Please try _id

— answered 8 months ago by Wei Kong
answer permalink
1 Comment
  • It worked. Thanks for the quick answer!

    Do you know why it's "_id"? Is there a reference to this in the docs?

    — commented 8 months ago by Stoyan Vasilev

Your Answer

Think you can help? Login to answer this question!