Microfleet CouchDB Plugin
Adds CouchDB support to microfleet. Learn more at https://github.com/apache/couchdb-nano and
https://couchdb.apache.org/
Install
yarn add @microfleet/plugin-couchdb
Configuration
To make use of the plugin adjust microfleet configuration in the following way:
exports.plugins = [
...,
'couchdb',
...
]
exports.couchdb = {
connection: 'http://username:password@database:5984',
database: 'sample',
indexDefinitions: [{
fields: ['_id', 'name'],
name: 'basic',
ddoc: '_id_for_index',
}]
}
Interface
service.couchdb
exposes document functions interface as described in here:
https://github.com/apache/couchdb-nano#document-functions