restle-mongodb

0.2.3 • Public • Published

Restle MongoDB Adapter

MongoDB persistence layer adapter used for Restle.

npm version Build Status

$ npm install restle --save
$ npm install restle-mongodb --save
const Restle = require('restle');
const Adapter = require('restle-mongodb');

const adapter = new Adapter({
  url: 'mongodb://...',
});

const app = new Restle({
  adapter: adapter,
  namespace: 'api',
  port: 3000,
});

app.on('ready', () => {
  // MongoDB adapter is connected
});

Readme

Keywords

none

Package Sidebar

Install

npm i restle-mongodb

Weekly Downloads

0

Version

0.2.3

License

ISC

Last publish

Collaborators

  • dcslack