/seneca-multi-mongo-example

Multi-tenanted mongo store example with Seneca

Primary LanguageJavaScript

Multi-tenanted Mongo using Seneca Mongo Data Store

This is a quick example of using Seneca.js with seneca-mongo-store to push data to more than one database. It uses the zone part of a Seneca entity namespace to achieve this, following the documentation linked below.

Usage

index.js assumes the existence of two databases on localhost:27017 - test and test2.

node index.js