一部のノードを返すために、Neo4j cypher クエリに where 句を挿入しようとしています。これは、実行しようとしているクエリです。
start n = node:node_auto_index(Name = "Contact Details") Match (n)--(x) Where x.Type = "Version" Return x;
これで、私の C# メソッドは次のようになります (Neo4jClient を使用):
public IEnumerable<Node<VersionNode>> GraphGetAllVersionNodes(string nodeName)
{
clientConnection = graphOperations.GraphGetConnection();
IEnumerable<Node<VersionNode>> queryResult = null;
var query = clientConnection
.Cypher
.Start(new
{
n = Node.ByIndexLookup("node_auto_index", "Name", nodeName)
})
.Match("(n)--(x)")
.Where((VersionNode x) => x.Type = "Version")
.Return<Node<VersionNode>>("(x)")
.Results;
queryResult = query.ToList();
return queryResult;
}
where句に次のようなエラーがあります。
Cannot convert lambda expression to type 'string' because it is not a delegate type
ここで何が間違っていますか?
ありがとう