0

我有一个包含三列的 postgrSQL 表,其中一列是 json 字段:

  id [num]  ||  school [char]   ||  info [json]
============================================================================
   1        ||   1st            || [{"fistname": "Bill", "Lastname": "Maison"}]
   2        ||   2nd            || [{"fistname": "John", "Lastname": "Handson"}]
   3        ||   3rd            || []
 

我想用 postgREST 过滤空的信息字段。

我现在的网址: https://127.0.0.1/table?&info->0->firstname=is.null

这实际上返回了所有为空的值,但是我该如何做呢?排除所有空值?

4

1 回答 1

2

找到了。对于将来会查看此内容的任何人:https://127.0.0.1/table?&info->0->firstname=not.is.null

于 2022-01-19T14:13:44.440 回答