这是loopback docs中关于使用
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\u id。
此外,post\u id和user\u id是关系Objectid。