Seneca plugin for Seraph Library to connect a Neo4j Database.
npm install seneca-seraph
See plugin options here
seneca.seraph
- Methods and properties list here
const Seneca = require('Seneca')
const SenecaSeraphPlugin = require('seneca-seraph')
const seneca = Seneca()
.use(SenecaSeraphPlugin, {
pass: '1q2w3e4r'
}).ready((err) => {
if (err) throw err
seneca.seraph.query('MATCH (n) RETURN n;', (err, result) => {
if (err) throw err
console.log('Seraph result', result)
})
})