Techie-Qabila / fastify-orientdb

Graph NoSql database plugin for fastify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastify-orientdb

js-standard-style npm version npm downloads

Under the hood orientdb client is used, the options that you pass to register will be passed to the orientdb connection.

Install

npm i fastify-orientdb --save

Usage

Add it to you project with register and you are done!
You can access the Orientdb Connection via fastify.db.

const fastify = require('fastify')

fastify.register(require('fastify-orientdb'), {
  host: 'localhost',
  port: 2424,
  username: 'admin',
  password: 'admin',
  name: 'GratefulDeadCocnerts'
}, err => {
  if (err) throw err
})

fastify.listen(3000, err => {
  if (err) throw err
  console.log(`server listening on ${fastify.server.address().port}`)
})

License

Licensed under MIT.

About

Graph NoSql database plugin for fastify

License:MIT License


Languages

Language:JavaScript 100.0%