restle-mongodb
v0.2.3
Published
Restle MongoDB adapter.
Downloads
2
Readme
Restle MongoDB Adapter
MongoDB persistence layer adapter used for Restle.
$ 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
});