Search code examples
neo4jclient

Multiple Limit / Order By clauses in single Neo4jClient Cypher Call


I am trying to call this query

queryItem = GraphClientInstance()
                 .Cypher
                 .Start(...)
                 .Match(...)
                 .Where(...)
                 .With(...)
                 .OrderByDescending(..)
                 .Limit(1)
                 .Match(...)
                 .Where(...)
                 .Return(...)
                 .OrderByDescending(..)
                 .Limit(..)
                 .Results;

I know this looks kind of long but this is only way I could get it done. Although Cypher allows it but Neo4jClient does not allow me to add multiple Order By or Limit Clauses. I can break it up but then it will be two server calls. Anyway I can make it in one call with Neo4jClient?


Solution

  • Fixed in 1.0.0.593 and above, released on 4th Sep 2013.