"has" 函数(至少包含 1)是否有任何类型的反函数取反(包含 none)

Is there any kind of inverse for the "has" function (contains at least 1) negated to (contains none)

我正在寻找所有已归还钥匙的卡片。我能找到的最接近的是 has 和 hasNot,但 hasNot 不是基于 属性。

试图让它成为这样的东西 g.V().hasLabel('card').both().DOESNOTHAVE('keyReturned',false)

hasAll 也可以

这是我想出来的

g.V().hasLabel("Location").has("Name", "{location}").out("locatedat").not(out( "being used by").has("approved", true).has("keyReturned", false))