我想找到至少缺少其中一个属性的人员列表:Title,DisplayName,FirstName,LastName,Id,Email。
我已经尝试过以下但是收到错误“java.lang.ArrayIndexOutOfBoundsException”
如果我只运行前三行,那么对于那些没有DisplayName且该属性为空值的人,我会得到结果,但是Title没有属性列。
g.V().hasLabel('people').hasNot('Title')
.or().hasLabel('people').hasNot('DisplayName')
.or().hasLabel('people').hasNot('FirstName')
.or().hasLabel('people').hasNot('LastName')
.or().hasLabel('people').hasNot('Id')
.or().hasLabel('people').hasNot('Email')
你为什么要复杂化查询?谁不只是这个:
g.V().hasLabel('people').not(
has('Title').has('DisplayName').
has('FirstName').has('LastName').
has('Id').has('Email'))
但是,我并不是很清楚你的期望是什么(声明“然而标题没有属性栏”有点令人困惑),但是重写的查询可能已经帮助你(如果没有,那么请提供一些示例数据和预期的结果,总是使得回答与遍历相关的问题变得容易得多。