ORMNeo
Abstract some trivial operations on neo4j driver for nodejs and make the use simpler. That's why we created ORMNeo.
Instalation
npm install ormneo
Usage
Connecting to neo4j database
const ormneo = ;ormneoConnection;
ORMNeo connects using the neo4j bolt protocol.
Create node example
const ORMNeoNode = ORMNeoNode; ORMNeoNode;
Find Nodes
const ormneo = ; const ORMNeoNode = ormneoORMNeoNode; const ORMNeoQuery = ormneoORMNeoQuery; const ORMNeoWhere = ormneoORMNeoWhere; let where = 'tes' $eq: 3; let query = ORMNeoQuery; ORMNeoNode;
Create relations
const ORMNeoRelation = ORMNeoRelation; ORMNeoRelation;
Find Relations
conts ormneo = ; const ORMNeoRelation = ormneoORMNeoRelation; const ORMNeoWhere = ormneoORMNeoWhere; ORMNeoRelation;
Executing Cypher
You can executing cypher using the direct Neo4j Driver session object. Or you can use ORMNeoCypher.
const ormneo = ; const ORMNeoCypher = ormneoORMNeoCypher; ORMNeoCypher;
Creating and droping indexes
You can create and drop indexes in properties.
const ormneo = ; const ORMNeoIndex = ormneoORMNeoIndex; //Creating ORMNeoIndex; //Droping ORMNeoIndex;
Documentation
See the full API documentation at docs. All docs was generated by JSDoc.
Tests
Most of this library functions are covered by unit tests. With 89% of coverage. See the code coverage on codecov.io.
Licence
ORMNeo is released under the MIT License.