如何使用强循环对数据进行计数(在包含“模型”中过滤的排除logging)

我正尝试用XYZ连接表ABC ,并使用Strongloop在ABC中计数logging(排除在XYZ中过滤的logging)。

我的代码是:

ABC.count({where: {abcPropertyName: {neq: '0x0'}}, include: { relation: 'XYZ', scope: {where: {xyzPropertyName: 'someValue'}}}}).$promise.then(function (result) { $rootScope.CountRes= result.count; }); 

问题:在'xyz'中的filter不工作。它在ABC中统计所有logging。