RETURN MAX(person.Id) C#

50 views
Skip to first unread message

Laghmari Khalil

unread,
Mar 28, 2014, 1:46:51 PM3/28/14
to neo4j...@googlegroups.com
Hello,

This query works just fine without c#

match (person:Person) return max (person.Id)

i need help to convert this query to c#.

I found this in another topic (not working) :

client.Cypher
                 .Match("(person:Person)")
                 .Return( () => Return.As<int>("MAX(person.Id)") )
                 .Results
                 .Single()


Tatham Oddie

unread,
Mar 31, 2014, 10:02:24 PM3/31/14
to neo4j...@googlegroups.com

You will need to define what you mean by “not working”.

 

Does it crash? Does it show an error message? Does it return the wrong number? Does it return nothing at all? Does your computer screen explode into an array of dancing unicorns? Does it take too long?

 

Which version of Neo4j?

 

 

--

Tatham Oddie

--
You received this message because you are subscribed to the Google Groups "Neo4jClient" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jclient...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Romiko

unread,
Apr 1, 2014, 3:38:28 AM4/1/14
to neo4j...@googlegroups.com, neo4j...@googlegroups.com
I'm sure we can rule put the exploding unicorns :)

Sent from my iPhone

Chris Skardon

unread,
Apr 1, 2014, 3:48:25 AM4/1/14
to neo4j...@googlegroups.com
That's very disappointing - I for one hoped to get a DancingUnicornException

On another note, the query works fine for me with no errors (neo4jClient: 1.0.0.651, against neo4j: 2.0.1). I can get an ArgumentException if there are no 'Person' objects in the database, and that is because the data coming back is null. Do you have any Person objects in your DB?

Chris
Reply all
Reply to author
Forward
0 new messages