kitchen-site icon indicating copy to clipboard operation
kitchen-site copied to clipboard

Remote DB Reference

Open rgstephens opened this issue 9 years ago • 1 comments

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

rgstephens avatar Apr 13 '16 14:04 rgstephens

@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" }
],

rgstephens avatar Apr 22 '16 02:04 rgstephens