Not getting result in hasId() but id().is() works
I don't get any response using g.V().hasId(48). But when i use g.V().id().is(48). it shows output. So, how will i use hasId(). I'm a beginner. I don;t have much idea in it
Solution:Jump to solution
It's different queries.
g.V().hasId(48)
or same g.V(48)
should return Vertex with id == 48.
g.V().id().is(48)
can return 48
if Vertex with id == 48 present.
great resource to start learning about Gremlin is https://kelvinlawrence.net/book/Gremlin-Graph-Guide.html...1 Reply
Solution
It's different queries.
g.V().hasId(48)
or same g.V(48)
should return Vertex with id == 48.
g.V().id().is(48)
can return 48
if Vertex with id == 48 present.
great resource to start learning about Gremlin is https://kelvinlawrence.net/book/Gremlin-Graph-Guide.html