如何在json服务器查询中排除几个单独的值

时间:2019-03-12 06:04:04

标签: json-server

使用 _ne 运算符,我可以排除特定值。

  

GET / posts?id_ne = 1

如何排除两个或多个单个值?我试图按如下方式链接参数,但这不起作用。

  

GET / posts?id_ne = 1&id_ne = 5

1 个答案:

答案 0 :(得分:0)

针对多个_ne运算符的修复程序已于2019年9月2日添加到json-server中。

请参阅https://github.com/typicode/json-server/pull/1013