Mango

Mango is a user/developer-friendly Object-To-Graph Mapper build on top of Neo4j's official JavaScript Driver.

Mango
Parameters
config (Object) Configuration object.
Name Description
config.engine Engine Instance of an Engine class. If none is supplied, Mango will look for config.engineConfig. If that does not exist or is unusable, a NoEngineError will be thrown.
config.engineConfig Object Configuration object to instantiate connection to Neo4j.
config.engineConfig.username string Neo4j DBMS username.
config.engineConfig.password string Neo4j DBMS password.
config.engineConfig.ip string? (default '0.0.0.0') Neo4j DBMS IP to connect to.
config.engineConfig.port string? (default '7687') Neo4j DBMS port to use
config.engineConfig.database string? (default 'neo4j') Neo4j DBMS database name to use.
config.builder Builder? (default newBuilder()) Instance of a Builder class. If none is supplied, a generic one will be instantiated for you.
Related
module:Builder module:Engine
Example
const mango = new Mango({
 engineConfig: {
   username: 'neo4j',
   password: 'neo4jpass',
 }
}); // connects to Neo4j DBMS instance running on 0.0.0.0:7687 and uses 'neo4j' database
Static Members
search(condition, value)
Instance Members
findNode(labels, props, config)
buildAndMergeNode(labels, props, config)
buildAndMergeRelationship(startNode, relationship, endNode, config)
mergeEnhancedNode(enode, config)
mergeEnhancedNodes(enodes, config)
buildAndMergeEnhancedNode($0, config, graphPattern)
buildAndMergeEnhancedNodes(graphPatterns, config, graphPattern)
deleteNode(node, config)
decomposeProps(props, config)

ConditionContainer

Represents a searched value and its search condition.

new ConditionContainer(condition: string, value: any)
Parameters
condition (string) Condition for value search ( > < >= <= == etc. ).
value (any) Searched value.
Instance Members
getType()
toObject()