kitchen-site
kitchen-site copied to clipboard
Remote DB Reference
Is it possible to reference a remote database and use the remote collection within Meteor Kitchen. I'm calling the RemoteCollectionDriver in the server_startup_source file.
var database = new MongoInternals.RemoteCollectionDriver("mongodb://10.1.1.1:27017/mydb");
MyTodos = new Mongo.Collection("todos", { _driver: database });
@perak I suggest that this item is marked as an enhancement and we add a remote property to the collections or something along those lines:
"collections": [
{ "name": "todos", "remote": "mongodb://10.1.1.1:27017/mydb" }
],