ArrowDB custom object "Count "API - does it use query parameters?

80 Views Asked by At

Created a model in an ArrowDB project and in the Arrow Builder web, can see the API Docs for the default APIs created for my model (Query, Create, Count, etc). The API doc for Count seem to indicate it has query parameters for where, sort, etc. but in testing directly from the API doc test and also in my code, the API always returns the total count of objects in the model, not a count based on filtered "where" criteria. Has anyone seem this behavior? Does the API in fact take these params and, if not, is there a good way to count the number of objects in a model based on a filtered criteria?

1

There are 1 best solutions below

2
On

I think it creates a CustomObject in arrowDB?

http://docs.appcelerator.com/arrowdb/latest/#!/api/CustomObjects-method-count

Count does not seem to take any parameters so I guess 'where' does not work at the moment...