Well,
If you still want the node returned but with a different, more compact and less hypermedia representation, we could add a compact one. Otherwise, you could do iterate over the properties of each node, put the resulting maps into a list and return that, since then you will get value representations of the content back, not a node representation.
Send from a device with crappy keyboard and autocorrection.
/peter
- James
https://github.com/neo4j/community/issues/211
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
Will try to look into it today.
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
Will soon update the Gremlin plugin so maps are returned properly, see
https://github.com/neo4j/gremlin-plugin/commit/87d7275b6edb459a51636abecbd7f662fa72cc3e#L3R145
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
you just collect the property keys and values in a map with a utility
function like
n = g.v(0).getRawVertex()
props = [:]
n.getPropertyKeys().each{props[it]=n.getProperty(it)}
props
which will return the props Map :)
/peter
n.propertyKeys.collectEntries { [it , n.getProperty(it)] }