Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Not getting result in hasId() but id().is() works - Apache TinkerPop
AT
Apache TinkerPop
•
2y ago
•
3 replies
austinjb32
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
It
's different queries
.
g.V().hasId(48)
g.V().hasId(48)
or same
g.V(48)
g.V(48)
should return Vertex with id
=
= 48
.
g.V().id().is(48)
g.V().id().is(48)
can return
48
48
if Vertex with id
=
= 48 present
.
great resource to start learning about Gremlin is
https://kelvinlawrence.net/book/Gremlin-Graph-Guide.html
Jump to solution
Apache TinkerPop
Join
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,376
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Query works when executed in console but not in javascript
AT
Apache TinkerPop / questions
2y ago
Basic vertex querying does not work in Amazon Neptune but it works with local Gremlin Server
AT
Apache TinkerPop / questions
16mo ago
Order group count result alphabetically
AT
Apache TinkerPop / questions
3y ago
No logs getting getting logged in log file for gremlin server
AT
Apache TinkerPop / questions
3y ago