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