client.RootNode is obsolete!

33 views
Skip to first unread message

Mohammad Sarrami

unread,
May 13, 2014, 1:19:39 AM5/13/14
to neo4j...@googlegroups.com
Hi there, 

What would be the newest version of this code as the client.RootNode is obsolete?
var query = client
    .Cypher
    .Start(new { root = client.RootNode })
    .Match("root-[:HAS_BOOK]->book")
    .Where((Book bk) => bk.Pages > 5)
    .Return(book => book.As<Book>());

var longBooks = query.Results;

Tatham Oddie

unread,
May 13, 2014, 1:54:18 AM5/13/14
to neo4j...@googlegroups.com

In Neo4j 2.0, you would use labels.

 

There are lots of examples on the project wiki at https://github.com/Readify/Neo4jClient/wiki/cypher-examples

 

 

--

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.

Reply all
Reply to author
Forward
0 new messages