valueMap() with id and label

1,758 views
Skip to first unread message

Guy Ellis

unread,
Apr 4, 2016, 12:42:48 PM4/4/16
to Gremlin-users
Is there a way to list the properties, ids and labels in a single or fluent command in gremlin? In other words, how do I combine these 3 commands together?

gremlin> g.V().id()
gremlin> g.V().label()
gremlin> g.V().valueMap()

Marko Rodriguez

unread,
Apr 4, 2016, 12:48:49 PM4/4/16
to gremli...@googlegroups.com
Yes,

g.V().valueMap(true).

You can also do:

g.V().valueMap(true,"name")

HTH,
Marko.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/3db0f801-ff61-44ea-8ff3-5b550fe3a860%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guy Ellis

unread,
Apr 4, 2016, 12:54:02 PM4/4/16
to Gremlin-users
Thank you! Exactly what I was looking for.
Reply all
Reply to author
Forward
0 new messages