I'm having an issue with the Where clause not pulling out the values and putting them as parameters.
return
startingNode
.StartCypher("startNode")
.Match(matchQuery)
.Where<TSourceNode>(otherStartNodes => otherStartNodes.Id != startingNode.Data.Id)
.Return<TSourceNode>("otherStartNodes").Results;
The Query string comes out looking like "WHERE (Id <> Id)". I can fix the problem easily by not using lambdas and just using the code below but I'm interested to see why it didn't work
.Where("startNode.Id <> otherStartNodes.Id")
I've also tried the below line but that didn't work either.
.Where<TSourceNode, TSourceNode>((otherStartNodes, startNode) => otherStartNodes.Id != startNode.Id)
Edit Tatham - I've created an issue in Bitbucket for this.
You are correct the right way for the Where clause should be.
.Where<TSourceNode, TSourceNode>((otherStartNodes, startNode) => otherStartNodes.Id != startNode.Id))