Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gremlin 小精灵';除';用法似乎不起作用_Gremlin_Titan - Fatal编程技术网

Gremlin 小精灵';除';用法似乎不起作用

Gremlin 小精灵';除';用法似乎不起作用,gremlin,titan,Gremlin,Titan,我正在尝试查找除某些特定顶点之外的顶点,但下面的查询不起作用: g.V() .has('someId') .except([g.V().has('someId').has('some_other_filter')]) 我在其中提供查询的“except”的用法是否不正确 谢谢您需要: 如果不将except中的内容转储到列表中,实际上只是将管道传递到except,该管道不会对顶点求值为true g.V() .has('someId') .except(g.V().has('someId').ha

我正在尝试查找除某些特定顶点之外的顶点,但下面的查询不起作用:

 g.V()
.has('someId')
.except([g.V().has('someId').has('some_other_filter')])
我在其中提供查询的“except”的用法是否不正确

谢谢

您需要:

如果不将
except
中的内容转储到列表中,实际上只是将管道传递到
except
,该管道不会对顶点求值为true

g.V()
.has('someId')
.except(g.V().has('someId').has('some_other_filter').toList())