Better Cypher Return Statements

41 views
Skip to first unread message

Tatham Oddie

unread,
Apr 25, 2013, 11:11:25 PM4/25/13
to neo4j...@googlegroups.com

Hi folks,

 

Neo4j Client now supports this:

 

.Return(a => a.Count())

 

.Return(() => All.Count())

 

Instead of:

 

.Return<long>("count(a)")

 

This is applicable for all functions that we support, and even custom Cypher text via Return.As<T>(string).

 

Yay!

 

 

-- Tatham

 

Tatham Oddie

unread,
Apr 26, 2013, 5:38:07 AM4/26/13
to neo4j...@googlegroups.com

And now also supports retrieving individual properties instead of entire payloads:

 

.Return(a => a.As<Foo>().Bar)

 

 

-- Tatham

Jacqui Read

unread,
Nov 6, 2013, 6:52:26 AM11/6/13
to neo4j...@googlegroups.com
Cool :)
Reply all
Reply to author
Forward
0 new messages