我无法弄清楚如何使用 neo4j 客户端中的 cypher linq Return 函数在 return 子句中放置过滤器。
我正在尝试进行这样的查询:
START Parents = node:app_fulltext('name:"City"'),
MATCH Parents-[?:ChildOf]-Apps
WITH collect(Apps.Title) as myapps, collect(Parents.Name) as myparents
RETURN myapps, filter(x in parents : not x in myapps) as myfilteredparents
我试过从这样的 with 子句开始
.With("collect(Apps.Title) as myapps, collect(Parents.Name) as myparents")
.Return("myapps, filter(x in parents : not x in myapps) as myfilteredparents")
但我无法将字符串传递给 Return 方法,如果我尝试将某种过滤器传递给 LINQ lambda,则会出现The return expression that you have provided uses methods other than those defined by ICypherResultItem.
错误。