hasNext
Determine if results are available from a traversal.
The hasNext()
step is a terminal step that does not return a traversal;
instead, this step executes the traversal and returns a result.
It determines whether there are available results from a traversal and returns a Boolean value of true or false.
Synopsis
hasNext()
Examples
// determines whether there are available results g.V().hasLabel('book').hasNext()