Constructor
new Client(url, optionsopt)
Creates a new instance of Client.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
String | The resource uri. | |||||||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
The connection options.
Properties
|
- Source:
Methods
close() → {Promise}
Closes the underlying connection
- Source:
Returns:
- Type
- Promise
open() → {Promise}
Opens the underlying connection to the Gremlin Server, if it's not already opened.
- Source:
Returns:
- Type
- Promise
submit(message, bindingsopt) → {Promise}
Send a request to the Gremlin Server, can send a script or bytecode steps.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
Bytecode | string | The bytecode or script to send | |
bindings |
Object |
<optional> |
The script bindings, if any. |
- Source:
Returns:
- Type
- Promise