In my table a column named “id” is of type of number. I would like to find all records where the value of “id” is among a specified array of “id” values (arrayOfIDs).
In Cloud code, I can run query.find() on each known “id” values in the array.
for (let i = 0; i < arrayOfIDs.length; i++) {
const query_coll = new Parse.Query("mytable");
query_coll.equalTo("id", incident_title);
const result = await query_coll.find();
}
This runs multiple query.find() operations depending on count of IDs in the array. Is there a better / more efficient way (in one query) to accomplish this?