new OGMNeoOperationExecuter()
- Source:
Methods
(static) batchReadOperations(operations) → {Promise.<(object|Error)>}
Batches an array of READ operations in a single transaction and returns the results.
Parameters:
Name | Type | Description |
---|---|---|
operations |
array | The array of operations that should be executed. |
- Source:
Returns:
Result(Parsed or not) of the executed opertion or some error if rejected.
- Type
- Promise.<(object|Error)>
(static) batchWriteOperations(operations) → {Promise.<(object|Error)>}
Batches an array of WRITE operations in a single transaction and returns the results.
Parameters:
Name | Type | Description |
---|---|---|
operations |
array | The array of operations that should be executed. |
- Source:
Returns:
Result(Parsed or not) of the executed opertion or some error if rejected.
- Type
- Promise.<(object|Error)>
(static) execute(operation, transaction) → {Promise.<(object|Error)>}
Executes an READ or WRITE ogmneo.Operation and returns a result.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
operation |
OGMNeoOperation | ogmneo.Operation object to be executed. | |
transaction |
object | null | Transaction created on read or write methods or transaction created on neo4j driver. |
- Source:
Returns:
Result(Parsed or not) of the executed opertion or some error if rejected.
- Type
- Promise.<(object|Error)>
(static) read(transactional) → {Promise.<(object|Error)>}
Opens a read transaction of neo4j driver and returns a result.
Parameters:
Name | Type | Description |
---|---|---|
transactional |
function | A function with the transaction parameter that you must return a promise of your operations on this transaction. |
- Source:
Returns:
Result(Parsed or not) of the executed opertion or some error if rejected.
- Type
- Promise.<(object|Error)>
(static) write(transactional) → {Promise.<(object|Error)>}
Opens a write transaction of neo4j drive and returns a result.
Parameters:
Name | Type | Description |
---|---|---|
transactional |
function | A function with the transaction parameter that you must return a promise of your operations on this transaction. |
- Source:
Returns:
Result(Parsed or not) of the executed opertion or some error if rejected.
- Type
- Promise.<(object|Error)>