【问题标题】:How can I exclude several individual values in json-server query如何在 json-server 查询中排除几个单独的值
【发布时间】:2019-08-02 13:06:44
【问题描述】:

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

GET /posts?id_ne=1

如何排除两个或多个单独的值?我尝试将参数链接如下,但它不起作用。

GET /posts?id_ne=1&id_ne=5

【问题讨论】:

标签: json-server


【解决方案1】:

2019 年 9 月 2 日,json-server 中添加了针对多个 _ne 运算符的修复

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

【讨论】:

    猜你喜欢
    • 2010-12-20
    • 2016-02-16
    • 1970-01-01
    • 2015-05-19
    • 1970-01-01
    • 1970-01-01
    • 2022-01-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多