class GraphResultSet
Represents the result set of a graph query execution
containing vertices, edges or
scalar values depending on the query.
It allows iteration of the items using for..of
statements under ES2015 and exposes
forEach()
, first()
and toArray()
to access the underlying items.
Members
Object
info
Information on the execution of a successful query:
Number
length
This property has been deprecated because it may return a lower value than the actual length of the results.
Use toArray()
instead.
Gets the length of the result.
String
pageState
A string token representing the current page state of query. It can be used in the following executions to continue paging and retrieve the remained of the result for the query.
Constructor
Creates a new instance of GraphResultSet
.
Methods
first
()Returns the first element of the result or null if the result is empty.
Executes a provided function once per result element.
getTraversers
()Gets the traversers represented contained in the result set.
toArray
()Results an Array of graph result elements (vertex, edge, scalar).
values
()Returns a new Iterator object that contains the values for each index in the result.