【问题标题】:Is there any kind of inverse for the "has" function (contains at least 1) negated to (contains none)“has”函数(至少包含1个)是否有任何类型的逆函数被否定(不包含)
【发布时间】:2019-07-22 19:49:18
【问题描述】:

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

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

hasAll 也可以工作

【问题讨论】:

  • 可能是这样的:!(g.V().hasLabel('card')).both().DOESNOTHAVE('keyReturned',false)?我对小精灵不熟悉。只是认为它可能会起作用:)

标签: gremlin azure-cosmosdb-gremlinapi


【解决方案1】:

这是我想出来的

g.V().hasLabel("Location").has("Name", "{location}").out("locatedat").not(out("被使用").has("已批准" , true).has("keyReturned", false))

【讨论】:

    猜你喜欢
    • 2012-08-05
    • 1970-01-01
    • 2013-08-11
    • 1970-01-01
    • 2022-06-28
    • 2018-03-21
    • 1970-01-01
    • 1970-01-01
    • 2019-03-13
    相关资源
    最近更新 更多