getSingleNode with labels?

17 views
Skip to first unread message

Javad Karabi

unread,
Jan 26, 2014, 4:40:56 PM1/26/14
to ne...@googlegroups.com
is it possible to use getSingleNode, or some variant, to pull a node with a label, property, and value?

Michael Hunger

unread,
Jan 26, 2014, 4:53:22 PM1/26/14
to ne...@googlegroups.com
You mean embedded? IteratorUtil.getSingleOrNull(gdb.findNodeByLabelAndProperty(label, property))




On Sun, Jan 26, 2014 at 10:40 PM, Javad Karabi <karab...@gmail.com> wrote:
is it possible to use getSingleNode, or some variant, to pull a node with a label, property, and value?

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

Javad Karabi

unread,
Jan 26, 2014, 4:58:46 PM1/26/14
to ne...@googlegroups.com
i do! and thank you!


--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/46x8u5uyT34/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Javad Karabi

unread,
Jan 26, 2014, 5:46:37 PM1/26/14
to ne...@googlegroups.com
michael, im seeing that the equivalent for 2.0 seems to be firstOrNull, however, as i assumed, it simply does a 'next' on the iterator and returns the first element. i guess thats the only way for it to work though, for an iterator. thank you though!
Reply all
Reply to author
Forward
0 new messages