hasLabel
Filter based on a particular vertex or edge label.
The hasLabel()
step is a filter step.
This step narrows the query to find values for a particular vertex or edge label.
Synopsis
hasKey( [ 'vertexLabel' | 'edgeLabel' ] ... )
Examples
Find the values for the vertex labels book and person:
g.V().hasLabel('book', 'person')