如何查询orientdb中没有特定属性的文档

如何查询orientdb中没有特定属性的文档,orientdb,Orientdb,我想查询具有特定属性的文档 我尝试了以下方法: select * from Foo where not bar is null 但这会将文档返回给我,即使它们没有该属性。即使它可以工作,但如果有值为null的属性(不知道orientdb是否以这种方式工作),它也会给出错误的结果 有没有办法通过sql检查属性是否存在?试试: select from Foo where bar is defined 尝试: 如果要查询没有特定边的顶点 select from Users where first(

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

我尝试了以下方法:

select * from Foo where not bar is null
但这会将文档返回给我,即使它们没有该属性。即使它可以工作,但如果有值为null的属性(不知道orientdb是否以这种方式工作),它也会给出错误的结果

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

试试:

select from Foo where bar is defined
尝试:


如果要查询没有特定边的顶点

select from Users where first(outE('born_in')).@rid is null

如果要查询没有特定边的顶点

select from Users where first(outE('born_in')).@rid is null

谢谢很有魅力,谢谢!工作起来很有魅力。