简体   繁体   English

ArrowDB自定义对象“ Count” API-是否使用查询参数?

[英]ArrowDB custom object “Count ”API - does it use query parameters?

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). 在ArrowDB项目和Arrow Builder网站中创建了模型,可以看到为我的模型创建的默认API(查询,创建,计数等)的API文档。 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. 用于Count的API文档似乎表明它具有关于位置,排序等的查询参数,但是在直接通过API doc测试以及在我的代码中进行测试时,API始终返回模型中对象的总数 ,而不是计数基于过滤的“ where”条件。 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? API实际上是否采用了这些参数?如果没有,是否存在一种基于过滤条件对模型中的对象数量进行计数的好方法?

I think it creates a CustomObject in arrowDB? 我认为它在arrowDB中创建了CustomObject?

http://docs.appcelerator.com/arrowdb/latest/#!/api/CustomObjects-method-count 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... Count似乎没有任何参数,所以我猜目前“ where”不起作用...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM