Anshul
Anshul

Reputation: 211

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?

Upvotes: 0

Views: 241

Answers (1)

Tatham Oddie
Tatham Oddie

Reputation: 4290

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

Upvotes: 1

Related Questions