g.V(1).property() on 1 item fails in 1.18.49
It seems 'anything property' on single item fails in gdotv 1.18.49:
g.V(1).properties() -> []
g.V(1).propertyMap() -> []
g.V().propertyMap() is OK.
g.V().limit(1).propertyMap() is also OK.
Solution:Jump to solution
hey, just for additional details, is that using gremlin server or another provider?
5 Replies
Solution
hey, just for additional details, is that using gremlin server or another provider?
also if running g.V(1). does that output anything?
I'm using a JSON file (Tinkerpop modern data preset), so I thnk no server?
No, g.V(1) doesn't works either...
It's probably an effect of the change to GUIDs as ID...
So, my bad.
g.V('9a250a1c-535c-4a5d-a6bb-8c3009ebd339') does work...
right, gotcha, i thought that might be the case
another example of why having the ability to specify the ID type (long , uuid, etc) on gdotv would be useful for playgrounds 😄
As a side note, why is properties() a map?
Doesn't it behave like a flatMap?