【问题标题】:loopback where field is null字段为空的环回
【发布时间】:2018-09-24 18:30:05
【问题描述】:

如何查询为空的字段?我收到一个 sql 错误

filter=[where][category_id][eq][null] 结果

SELECT WHERE category_id'null' ORDER BY id

使用最新版本的 loopback 和 loopback-connector-mysql

【问题讨论】:

    标签: loopbackjs loopback


    【解决方案1】:

    你可以用filter点赞

    /model?filter[where][category_id][eq]=null
    

    正如您在环回中看到的那样

    /medias?filter[where][keywords][inq]=foo&filter[where][keywords][inq]=bar
    

    参考链接:here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-02-18
      • 1970-01-01
      • 2021-03-23
      • 2017-02-06
      • 2010-11-23
      • 1970-01-01
      • 2013-02-11
      相关资源
      最近更新 更多