Class: ResultSet

ResultSet(items, attributesopt)

Represents the response returned from the execution of a Gremlin traversal or script.

Constructor

new ResultSet(items, attributesopt)

Creates a new instance of ResultSet.
Parameters:
Name Type Attributes Description
items Array
attributes Map <optional>
Source:

Members

attributes :Map

Gets a Map representing the attributes of the response.
Type:
  • Map
Source:

length :Number

Gets the amount of items in the result.
Type:
  • Number
Source:

Methods

first() → {Object|null}

Returns the first item.
Source:
Returns:
Type
Object | null

toArray() → {Array}

Gets an array of result items.
Source:
Returns:
Type
Array