Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 796 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 796 Bytes

SenecaSeraph

Seneca plugin for Seraph Library to connect a Neo4j Database.

Install

npm install seneca-seraph

Options

See plugin options here

Plugin Interface

seneca.seraph
  • Methods and properties list here

Quick Example

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)
    })
  })