Home Reference Source
import ManagedTransaction from 'neo4j-driver-core/lib/transaction-managed.js'
public class | source

ManagedTransaction

Represents a transaction that is managed by the transaction executor.

Method Summary

Public Methods
public

run(query: mixed, parameters: Object): Result

Run Cypher query Could be called with a query object i.e.: {text: "MATCH ...", parameters: {param: 1}} or with the query and parameters as separate arguments.

Public Methods

public run(query: mixed, parameters: Object): Result source

Run Cypher query Could be called with a query object i.e.: {text: "MATCH ...", parameters: {param: 1}} or with the query and parameters as separate arguments.

Params:

NameTypeAttributeDescription
query mixed

Cypher query to execute

parameters Object

Map with parameters to use in query

Return:

Result

New Result