egg-neo4j
Neo4j for egg framework.
Install
$ npm i egg-neo4j --save
Usage
// {app_root}/config/plugin.jsexportsneo4j = enable: true package: 'egg-neo4j';
Configuration
// {app_root}/config/config.default.jsexportsneo4j = client: url: 'bolt://127.0.0.1' username: 'neo4j' password: 'admin' ;
see config/config.default.js for more detail.
Example
Assume that we have User
nodes in our database and we want to fetch all of them:
{ const session = thisctxappneo4j; try const result = await session; return resultrecords; finally session; }
Questions & Suggestions
Please open an issue here.
PRs welcome!