hasId
Filter based on a particular id.
The hasId()
step is a filter step.
This step narrows the query to find particular vertices or edges with a certain id.
Synopsis
hasId( 'id' )
Examples
Find the item with the supplied book id:
g.V().hasId(['~label':'book', 'book_id':1004]).valueMap()