I’m confused

get all rows that matches a specific category id

hi folks,

in the CRUD sample app this server code is used to get all items in a collection:
var dbApiKey = "something";
var result = Collection.query(dbApiKey, "Items");
Apperyio.response.success(result, "application/json");

i have now modified the column so it has a column which contain a field called categoryid. this field is not uniqe and several records in collection can have the same value.

now I would like to return all records from a colletion that contain a speific categoryid. is there a simple way of doing that? I reliazied that .retriveobject only retrives one record based up the _id column.

thanks for any help
1 person has
this problem