Class: OGMNeo

OGMNeo()

new OGMNeo()

Source:

Members

(static) driver :string

Type:
  • string
Source:

(static) isConnected :boolean

Type:
  • boolean
Source:

(static) logCypherEnabled

Returns property that defines if the generated cypher must be logged on the console.
Source:

(static) logCypherEnabled

Set the property that defines if the generated cypher must be logged on the console.
Source:

Methods

(static) connect(useropt, passwordopt, hostopt, configurationopt)

Creates a neo4j connection using bolt protocol. A successful connection will create a driver object that can be accessed for OGMNeo.driver
Parameters:
Name Type Attributes Default Description
user string <optional>
neo4j Neo4j user.
password string <optional>
neo4j Neo4j password.
host string <optional>
localhost Neo4j host.
configuration string <optional>
Optional extra configuration for neo4j driver.
Source:

(static) disconnect()

Closes the current driver connection.
Source:

(static) session() → {object}

Returns a driver NEW session, always a new instance.
Source:
Returns:
Neo4j driver session.
Type
object