Constructor
new ResultSet(items)
Creates a new instance of ResultSet.
Parameters:
Name | Type | Description |
---|---|---|
items |
Array |
- Source:
Members
length :Number
Gets the amount of items in the result.
Type:
- Number
- Source:
traversers :Array
Access the raw result items via a property.
Type:
- Array
- Deprecated:
- It will be removed in Apache TinkerPop version 3.4.
Use
toArray()
or iterate directly from theResultSet
.
- It will be removed in Apache TinkerPop version 3.4.
Use
- Source:
Methods
first() → {Object|null}
Returns the first item.
- Source:
Returns:
- Type
- Object | null
inspect()
Provides a representation useful for debug and tracing.
- Source:
toArray() → {Array}
Gets an array of result items.
- Source:
Returns:
- Type
- Array