maxdemarzi / neography

A thin Ruby wrapper to the Neo4j Rest API
MIT License
603 stars 139 forks source link

How to get labels of a node? #176

Closed jamesladd closed 10 years ago

jamesladd commented 10 years ago

It appears you cannot get the labels for a single node but only all nodes in a graph. Is there a reason for this?

Please can we have a get_node_labels that returns only those labels for the specified node.

maxdemarzi commented 10 years ago

Doesn't this do it?

neo.get_node_labels(id)

https://github.com/maxdemarzi/neography/blob/master/lib/neography/rest/node_labels.rb#L10

jamesladd commented 10 years ago

Ah, I'm sure it does. Forgive me but I went on the documentation and not the code.

On Mon, Jun 2, 2014 at 11:24 AM, Max De Marzi notifications@github.com wrote:

Doesn't this do it?

neo.get_node_labels(id)

https://github.com/maxdemarzi/neography/blob/master/lib/neography/rest/node_labels.rb#L10

— Reply to this email directly or view it on GitHub https://github.com/maxdemarzi/neography/issues/176#issuecomment-44795448 .

maxdemarzi commented 10 years ago

You are right, fixed.

https://github.com/maxdemarzi/neography/wiki/Node-labels