如何在没有特定属性的情况下查询orientdb文档

Wou*_*ter 1 orientdb

我想查询具有特定属性的文档.

我尝试了以下方法:

select * from Foo where not bar is null
Run Code Online (Sandbox Code Playgroud)

但即使他们没有这个属性,这也会将文件返回给我.即使它会起作用,如果存在以null作为值的属性,也会产生错误的结果(不知道orientdb是这样工作的).

有没有办法通过sql检查属性的存在?

小智 5

尝试:

select from Foo where bar is defined
Run Code Online (Sandbox Code Playgroud)