【发布时间】:2018-01-30 00:38:31
【问题描述】:
这就是环回文档中关于使用 and 运算符的内容
休息: ?filter[where][and][0][title]=My%20Post&filter[where][and][1][content]=Hello
我试过了:
count?filter{"where":[{"and"}[{"user_id":"5a6840ddb2b58b07cca3c680"},{"post_id":"4444"}]} //post_id:4444 is not exit
和
count?filter[where][and][0][user_id]="5a6840ddb2b58b07cca3c680"&filter[where][and][1][post_id]="5a6253bdcf975122dcf11dd8"
和许多其他形式
但结果是 count: 12 但应该在 4444 中返回 0 或任何错误的 post_id。
另外,post_id 和 user_id 是关系 Objectid。
【问题讨论】:
标签: node.js rest loopbackjs strongloop